Re: Adding to relationships - what method to use?
Re: Adding to relationships - what method to use?
- Subject: Re: Adding to relationships - what method to use?
- From: Peter Vandoros <email@hidden>
- Date: Wed, 19 Oct 2005 16:16:07 +1000
the safest and recommended way is to use
addObjectToBothSidesOfRelationshipWithKey and
removeObjectFromBothSidesOfRelationshipWithKey
Thanks
Peter
Greg Hulands wrote:
Hi,
When adding to or removing from a to-Many relationship, what method
is the best practice?
excludeObjectFromPropertyWithKey and includeObjectIntoPropertyWithKey
or
addObjectToBothSidesOfRelationshipWithKey and
removeObjectFromBothSidesOfRelationshipWithKey.
With the templates included with EOGenerator, it uses the first one,
but with other peoples templates they use the second one.
I have run into an issue with my code so I want to use the correct way.
Regards,
Greg
_______________________________________________
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
_______________________________________________
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