Re: eogen takeStoredValueForKey(toManyArray, relationshipName)
Re: eogen takeStoredValueForKey(toManyArray, relationshipName)
- Subject: Re: eogen takeStoredValueForKey(toManyArray, relationshipName)
- From: Chuck Hill <email@hidden>
- Date: Mon, 2 Mar 2009 19:51:11 -0800
On Mar 2, 2009, at 7:09 PM, Dan Faber wrote:
I have noticed that the default _wonder.java template does not
produce a method to assign an array to a toMany relationship, as:
public void setMyMany(NSArray value) {
takeStoredValueForKey(value, "myMany");
}
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?
Thanks
Dan Faber
email@hidden
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.
Chuck
--
Chuck Hill Senior Consultant / VP Development
Practical WebObjects - for developers who want to increase their
overall knowledge of WebObjects or who are trying to solve specific
problems.
http://www.global-village.net/products/practical_webobjects
_______________________________________________
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