Re: EO: Object Collections?
Re: EO: Object Collections?
- Subject: Re: EO: Object Collections?
- From: Ricardo Strausz <email@hidden>
- Date: Mon, 28 Jul 2003 12:49:39 -0500
On lunes, juli 28, 2003, at 04:52 America/Mexico_City, Goodbye Bill
wrote:
SCENARIO:
Assume we have two objects in our model: "Song" and "Genre." The goal
is to
be able to assign each "Song" object to multiple "Genre" objects.
QUESTION:
Using the example above, must there be some type of third object --
possibly
a "SongGenreAssignment" object to allow for a many-to-many
relationship?
For this, you nead a third table; something like:
Song-->>relatingTable<<--Genre
In your code you may nead something like addToBothSidesOfRelation...
It would appear that EO should take care of this thing automatically
if the
developer is to be able to break away from manipulating the database
directly. Unfortunately, there does not appear to be any way to
define a
collection of objects within EO, other than using a relationship
(which does
not allow for a many-to-many hierarchy).
_______________________________________________
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.
_______________________________________________
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.