FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Data Layer

 
Post new topic   Reply to topic     Forum Index -> Sendero
View previous topic :: View next topic  
Author Message
BLS



Joined: 28 Mar 2006
Posts: 44
Location: France

PostPosted: Sun Sep 02, 2007 3:31 am    Post subject: Data Layer Reply with quote

Hi ,
Just a simple question : What kind of relations are supported.
for instance many to many, one to one, reflexive relations.

Do you have any ideas to support ref. integrity within the object-relation wrapper classes ?
Bjoern
PS : I like what I have seen so far
Back to top
View user's profile Send private message
aaronc542



Joined: 22 May 2007
Posts: 35
Location: NJ, USA

PostPosted: Mon Sep 03, 2007 10:52 am    Post subject: Reply with quote

Hi Bjoern,

Right now there HasOne and HABTM (Has and Belongs To Many) relationships are implemented. You could create a reflexive relationship simply by adding a HasOne field that points to the same class in which it belongs.

i.e.

class Person
{
PrimaryKey id;
HasOne!(Person) parent;
}

As of now, I have not planned on any specific built-in support for referential integrity. What would you suggest?

Aaron
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> Sendero All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group