• 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: Updating / Replacing Parent Objects
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Updating / Replacing Parent Objects


  • Subject: Re: Updating / Replacing Parent Objects
  • From: Dirk Bajohr <email@hidden>
  • Date: Mon, 2 Aug 2004 00:48:00 +0200

In a to-1 relationship (I assume you are using that from post to forum) you don't need to call remove... because a post can only be applied to 1 forum. If a post can be in more than 1 forum you have to call (before saving the EC):
myPost.removeObjectFromBothSidesOfRelationshipWithKey(oldForum, "forum");


But it won't hurt if you call it anyway ;-), I'm just a little bit lazy. I don't know what other people do, anyone?

Cheers,
Dirk

Am 01.08.2004 um 23:45 schrieb Lotsa Cabo:

Thanks for the reply, Dirk. In your examples above are you assuming that "removeObjectFromBothSidesofRelationshipWithKey()" has already been called? I notice you mentioned the method but did not include it in either example.

R/S
Ryan

-- Dirk Bajohr iSOLUTION - Individuelle Software fuer moderne Kommunikation

Hauptstr. 50
53757 Sankt Augustin

T +49 2241 921567-0
F +49 2241 921567-89
http://www.isolution.de
_______________________________________________
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: Updating / Replacing Parent Objects
      • From: Nathan Dumar <email@hidden>
References: 
 >Updating / Replacing Parent Objects (From: Lotsa Cabo <email@hidden>)
 >Re: Updating / Replacing Parent Objects (From: Dirk Bajohr <email@hidden>)
 >Re: Updating / Replacing Parent Objects (From: Lotsa Cabo <email@hidden>)

  • Prev by Date: Unique Index in EO
  • Next by Date: Re: Editing Context Choices
  • Previous by thread: Re: Updating / Replacing Parent Objects
  • Next by thread: Re: Updating / Replacing Parent Objects
  • Index(es):
    • Date
    • Thread