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 protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to