Re: A Bad Bug?
Re: A Bad Bug?
- Subject: Re: A Bad Bug?
- From: Robert Walker <email@hidden>
- Date: Tue, 19 Sep 2006 14:20:08 -0400
On Sep 19, 2006, at 12:24 PM, Kieran Kelleher wrote: The SOLUTION was to change my code to use eoSourceObject.addObjectToBothSidesOfRelationshipWithKey( destObject, relationshipKey);
.....but WHY does not takeValueForKey or takeStoredValueForKey not set the relationship both ways?
Simple answer; because it was not designed to do that. And no this is not a bug. My only guess is that there was a reason the designers of EOF chose to implement it that way. Given that takeValueForKey is used not only for relationships, but also attributes would probably have something to do with this. Those KVC methods are not designed to manipulate relationships. The method addObjectToBothSidesOfRelationshipWithKey(object, relationshipKey) is provided for just this purpose.
|
_______________________________________________
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
References: | |
| >A Bad Bug? (From: Kieran Kelleher <email@hidden>) |