• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: EOF saving "wrong" object in a to-one-relationship
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: EOF saving "wrong" object in a to-one-relationship


  • Subject: Re: EOF saving "wrong" object in a to-one-relationship
  • From: Mark Wardle <email@hidden>
  • Date: Tue, 21 Jun 2011 20:31:44 +0100

I've had this problem if my foreign key is a class property.

Mark

On 21 June 2011 13:05, Peer Sandtner <email@hidden> wrote:
> Hello all,
>
> 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.
>
> 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. ;-)
>
> Regards,
> Peer
>
>  _______________________________________________
> 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
>



--
Dr. Mark Wardle
Specialist registrar, Neurology
Cardiff, UK
 _______________________________________________
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: 
 >EOF saving "wrong" object in a to-one-relationship (From: Peer Sandtner <email@hidden>)

  • Prev by Date: Re: EOF saving "wrong" object in a to-one-relationship
  • Next by Date: Adding Instances (was Re: Deleting instance with REST & JavaMonitor)
  • Previous by thread: Re: EOF saving "wrong" object in a to-one-relationship
  • Next by thread: Re: EOF saving "wrong" object in a to-one-relationship
  • Index(es):
    • Date
    • Thread