Re: EOF saving "wrong" object in a to-one-relationship
Re: EOF saving "wrong" object in a to-one-relationship
- Subject: Re: EOF saving "wrong" object in a to-one-relationship
- From: Chuck Hill <email@hidden>
- Date: Tue, 21 Jun 2011 08:12:20 -0700
HI Peer,
On Jun 21, 2011, at 5:05 AM, Peer Sandtner wrote:
>
> I’m having a strange problem saving an object with a specific to-one-relationship. The value for the relationship is set through a WOPopupButton (containing object "A" and "B"); these two objects already exist in the database.
Is either one set on the object before you do this editing?
> Just before calling ec.saveChanges() the relationship contains object "B" (verified by means of debugger). But what gets saved into the database is object "A". BTW: The "set" method for the to-one-relationship is not touched by anyone after calling saveChanges.
>
> I definitely need some help. ;-)
:-)
Is there a relationship from A and B back to this object? I am thinking that perhaps the relationship is only getting set half way and what you are seeing is the result of that.
Is there anything in your validate... methods that could be responsible for this?
Chuck
>
> Regards,
> Peer
--
Chuck Hill Senior Consultant / VP Development
Come to WOWODC this July for unparalleled WO learning opportunities and real peer to peer problem solving! Network, socialize, and enjoy a great cosmopolitan city. See you there! http://www.wocommunity.org/wowodc11/
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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