Re: eogen takeStoredValueForKey(toManyArray, relationshipName)
Re: eogen takeStoredValueForKey(toManyArray, relationshipName)
- Subject: Re: eogen takeStoredValueForKey(toManyArray, relationshipName)
- From: Mike Schrag <email@hidden>
- Date: Tue, 3 Mar 2009 08:45:43 -0500
Is there a problem with doing so? Should I change my method to
delete all the current relationships, and then loop through the
updated array and use "addTo${relationship.capitalizedName}" instead?
This is more of a Wonder question. It is safe WRT to EOF to do
this. BUT ERXGenericRecord has some fancy relationship automagic
manipulation that may not work. It may work, I don't use it and I
don't recall offhand.
I suspect the one that took an array did NOT do an
addObjectToBothSides ... To get that to work right, I would recommend
remove one-by-and and then readd. If you don't use automatic inverse
updating, then you can do whatever you want.
ms
_______________________________________________
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