• 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: Aaron Rosenzweig <email@hidden>
  • Date: Thu, 27 Feb 2014 10:13:55 -0500

Hi John,

Could be you did it in “validateForSave()” You shouldn’t be changing values there, only throwing validation errors.

Grab the snake by its tail, start pulling, keep doing it until you find the head.

Namely, put your break point not in your “validateRelationship” method but more directly in your “updateRelationship” method which should be in your abstract “under bar” class for the EO. That is much closer to the scene of the crime. Try that and report back.

Oh, notice how the “validateRelationship” and “validateAttribute” methods always return an object? That is the potentially coerced object that EOF will use to update the EO. In contrast, “validateForSave()” is a void… That is a subtle clue to never do object manipulation in “validateForSave()”

Of course I’m stabbing in the dark here but “grabbing the tail of the snake” will make whatever it is clear.

May the 4th be with you.
Aaron Rosenzweig / Chat 'n Bike
e:  email@hidden  t:  (301) 956-2319
Chat 'n Bike Chat 'n Bike
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: Problem in new Wonder project; Solved
  • Next by Date: Re: Linking iOS and WebObjects
  • Previous by thread: 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