• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
EO: Not propagating key values...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: EO: Not propagating key values...
      • From: Art Isbell <email@hidden>
  • Prev by Date: Re: Xcode
  • Next by Date: EO: Filtering Existing Objects
  • Previous by thread: Re: EO: Creating Relationships - BOGUS?
  • Next by thread: Re: EO: Not propagating key values...
  • Index(es):
    • Date
    • Thread