Re: Updating / Replacing Parent Objects
Re: Updating / Replacing Parent Objects
- Subject: Re: Updating / Replacing Parent Objects
- From: Nathan Dumar <email@hidden>
- Date: Tue, 3 Aug 2004 10:16:43 -0400
I'm still learning, so tell me if I'm wrong ...
Instead of using removeObjectFromBothSidesOfRelationshipWithKey, I
usually just set the eomodel's Delete Rule to Nullify the relationship
when an object is deleted.
Nathan
On Aug 1, 2004, at 6:48 PM, Dirk Bajohr wrote:
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.
============= Signature File =============
Put your email in an envelope -- use PGP encryption.
Get your privacy for FREE at
http://www.pgp.com/products/freeware.html
My public key:
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: PGP 8.0.3 - not licensed for commercial use: www.pgp.com
mQGiBEDt3kcRBADfmxBAiNMHdGeL0WIQc78dzrNIjN3S9cRsxBjAP7W0vv+RrZNr
eNwF/F8rGTopxXhfanjrzNDl0HL0g+zDGTshhxjBd9qkOmrhznFn1ZKvSp9KGpeA
CmDwVKBiYvVFoyltJ7PS2sZmk+1QzYy349MjWi6nGludip3nk/XftwigzwCg/7uG
C6JzdWxwXg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XTKhoBOUGMiD9Y0zn
KVun1WV11kA2PncLIw9O0p7RY2xhmIQUK3S+ZRGd1GQjTXQ2UKo/decLwwQuoDA2
51Lwcs4tLDX3a0scu4c+rKUAuMNqYo4DwcvM/K7iTcGf2K0cNwACAhAAmq1SMrYL
4MS49La6zccYyqmyiU4s6Yj9jcTpi7yk27S+3JdawCZCHcnNAERln3eQI9JC2rym
ZPYb+9R6JSMUzGfa1DepaNqW6lsU8YGY+U+LvT/unlP9N5eYhYawBzCl9ic5zIC1
JUDJlgMwh8xfXb7QF9xySHRWvGBwl2yWjEdx+D8HvqyAWP42NM5QX7Az99Vvs64Q
OLOHpwkpRzRxbb/Lh5IF6Hw09oScWCmU7+nCmRl+6LnpVZLfu8LcXaGXNtxxyhel
W2VQOvKS/6b/NW3ltyKzQOe4+eAIShXc+qbDG6HOobFBPe7tW7agBrHMKDTqsMND
kgeJRLEjTitFw11L2E5MnIyS1PU2d6UpuF/XR08EJGLOQSxBrZpavHef48FCyh91
8Gfi3hFByYmfvZSY1Ln241ElxNO8P4bcsEDZeHdJ27HyI3EBwSXgAbiT209lEfcl
vLfngsryTh4uAybtlp1MLQKrXDCySSG7hc9wZc4obHPJyiFfDYJXMRdk0zdfa5w9
zVjlE8PU5QAV561m3jG/JfbmUI70VzFbnJwIwlCF7ETtPNdzZiVPvFUqQzn5yPrT
d3OGr8BranU5AxWvsMKICn3hWDm47Z8YJeP0xpbwY3lP05i1IZna0tH2XpHXv3dm
6oOPbBDlxacs1CDmCbrqPnJkL6SBlTWB/7uJAFIEGBECABIFAkDt4e0FCQCXnIAF
GwwAAAAACgkQEPcdq6mbhBZclQCg/D0tO2OaPUBbgfdMwUnvvcYgS+MAn1SbAiCF
9YSThBQFbyjAdjYaw53j
=Vxb6
-----END PGP PUBLIC KEY BLOCK-----
This key expires on Oct 31, 2004. Request a new key on or after this
date.
_______________________________________________
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.