EO: Not propagating key values...
EO: Not propagating key values...
- Subject: EO: Not propagating key values...
- From: Goodbye Bill <email@hidden>
- Date: Sat, 02 Aug 2003 16:07:57 -0400
AAARRGH! NOTHING that I do will allow EO to propagate the IDs from a parent
object to a child. I can understand setting the primary keys for objects,
but I do NOT want to stuff foreign keys. How can I do this?
My entities and relationships are set up as follows...
Album
Songs
Song
Album
Properties for the objects are as follows...
ALBUM:
idPrivate (char(40))
dispName (char(255))
SONG:
idPrivate (char(40))
idAlbum (char(40))
dispName (char(255))
The "Songs" relationship is one-to-many and is basically...
Album.idPrivate -> Song.idAlbum (inner join)
The "Album" relationship is a one-to-one and looks as follows...
Song.idAlbum -> Album.idPrivate (inner join)
I have tried the following syntax...
ATTEMPT #1:
oSong.setAlbum(oAlbum);
ATTEMPT #2:
oAlbum.addObjectToPropertyWithKey(oSong, "Songs");
The first attempt, above, causes an error saying that the "idAlbum" property
cannot be null (which tells me it's not being supplied). The second one
complains about not using a formatter.
If I programmatically set the IDs manually, everything works fine. How can
I NOT do this?
Thanx,
"Bill"
_______________________________________________
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.