• 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
ec.deleteObject() and NSValidationErrors caused by the delete
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ec.deleteObject() and NSValidationErrors caused by the delete


  • Subject: ec.deleteObject() and NSValidationErrors caused by the delete
  • From: "Joe Little" <email@hidden>
  • Date: Thu, 25 Sep 2008 11:17:38 -0700

I'm in the midst of doing some archival code. Once my objects are
copied off into their archival EOs, I then run this line:

ec.deleteObject(thisApplicant);

I get tons of exceptions based on NSValidationErrors, as various
foreign keys won't be satisfied. Example:

An Exception occured while trying to save the information:
com.webobjects.foundation.NSValidation$ValidationException: The
applicant property of Eval must have a Applicant assigned

My various delete rules in my model are all nullify. I'm presuming
that I need CASCADE instead to resolve the foreign key management? Or
is it simply a matter of changing the optionality to Optional from
Mandatory?
 _______________________________________________
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

  • Follow-Ups:
    • Re: ec.deleteObject() and NSValidationErrors caused by the delete
      • From: Chuck Hill <email@hidden>
  • Prev by Date: Re: weird combination! (followup: Form field ignored?!? Weird...)
  • Next by Date: Re: ec.deleteObject() and NSValidationErrors caused by the delete
  • Previous by thread: Re: BigDecimal for SELECT SUM(...)
  • Next by thread: Re: ec.deleteObject() and NSValidationErrors caused by the delete
  • Index(es):
    • Date
    • Thread