• 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
Re: Inserting records into to-many relationship
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Inserting records into to-many relationship


  • Subject: Re: Inserting records into to-many relationship
  • From: Florijan Stamenkovic <email@hidden>
  • Date: Sun, 14 Aug 2005 21:57:10 +0200


On Aug 14, 2005, at 15:30, Zak Burke wrote:

It gives me an exception that the
authorId of Books cannot bew null.

Make sure you set the author -->> books relationship to propagate its primary key.


Nope, that is NOT the case. I think that the only usage of propagate primary key is in one - to - one relationships (it is the only one I know about). On a one2many and reverse relationships it should NOT be checked.


The problem described above is obviously the result of mishandling relationships ( EOs not being inserted into the same editing context when relating them).

Cheers
Flor

Good luck,

zak.

_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: Inserting records into to-many relationship
      • From: Arturo PĂ©rez <email@hidden>
References: 
 >Inserting records into to-many relationship (From: Tanmoy Roy <email@hidden>)
 >Re: Inserting records into to-many relationship (From: Zak Burke <email@hidden>)

  • Prev by Date: Re: accept credit cards...a WO solution...
  • Next by Date: Re: Inserting records into to-many relationship
  • Previous by thread: Re: Inserting records into to-many relationship
  • Next by thread: Re: Inserting records into to-many relationship
  • Index(es):
    • Date
    • Thread