Re: Nead a guru in to-many relations
Re: Nead a guru in to-many relations
- Subject: Re: Nead a guru in to-many relations
- From: Art Isbell <email@hidden>
- Date: Wed, 30 Jul 2003 12:01:58 -1000
On Wednesday, July 30, 2003, at 10:39 AM, Ricardo Strausz wrote:
How can I neast objects of the same kind over and over??
Is there a usefull db/sql/eof mechanism to perform this??
A relationship whose source and destination entities are the same is
called a reflexive relationship. You'll need to add a foreign key to
the entity so you can equate the primary key of the source object with
the foreign key of the destination objects as with any to-many
relationship. EOModeler supports this. You should be able to treat
this as with any to-many relationship. With this configuration, the
number of levels of relationships is not limited.
I suppose a difficulty with this configuration is how to display the
reflexive relationship objects since the number of levels is unlimited.
It may not be easy to automatically prefetch all related objects
because the number of levels can't be known initially.
Are there specific questions you have about such a configuration?
Aloha,
Art
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.