• 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: validateXXX not called on a relationship set to null
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: validateXXX not called on a relationship set to null


  • Subject: Re: validateXXX not called on a relationship set to null
  • From: Chuck Hill <email@hidden>
  • Date: Thu, 27 Feb 2014 16:56:27 +0000
  • Thread-topic: validateXXX not called on a relationship set to null

Try the set… method then.  Also check the relationships to this entity in the model.  Is one set to Nullify?  It could be EOF doing this as part of a save.

Chuck

On 2/27/2014, 5:43 AM, "John Pollard" wrote:

Hi List,

I am trying to pin down where a to-one relationship is getting set to null inappropriately.

I added validateMyRelationship() to trap and throw and this is triggered ok when the base object is created / updated.

However, it wasn't called when the relationship was set to null and hence the update proceeded, bypassing my trap.

Does the above scenario ring any bells; why isn't validateMyRelationship() called when I can see the update request to the database follows.

I can't set the relationship to mandatory as in some circumstances null is valid, though it should never change to null after it has been set.

Thanks
John



_______________________________________________
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
 _______________________________________________
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: 
 >validateXXX not called on a relationship set to null (From: John Pollard <email@hidden>)

  • Prev by Date: Re: Linking iOS and WebObjects
  • Next by Date: Re: validateXXX not called on a relationship set to null
  • Previous by thread: Re: validateXXX not called on a relationship set to null
  • Next by thread: Re: validateXXX not called on a relationship set to null
  • Index(es):
    • Date
    • Thread