Re: Updating / Replacing Parent Objects
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.