• 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
Create Entity, Delete Entity, Why does validation occur?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Create Entity, Delete Entity, Why does validation occur?


  • Subject: Create Entity, Delete Entity, Why does validation occur?
  • From: James Cicenia <email@hidden>
  • Date: Mon, 21 Jun 2010 16:10:19 -0500

Hello -

I am doing this:

if(att1.alertTarget()==null || att1.percentageOfAlert() == null ){
    currentMasterAlert.removeFromAlertThresholdTargetsRelationship(att1);
    currentMasterAlert.ctEditingContext().deleteObject(att1);
    att1  = null;
    }


but get this:

[2010-6-21 16:4:50 CDT] <WorkerThread8> Validation failed on an object [null] with keypath = att3.alertTarget and exception: The alertTarget property of AlertThresholdTarget must have a AlertTarget assigned

Yet it does delete the entity:

Why does it want to run validation during a delete?

Thanks James

 _______________________________________________
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: Create Entity, Delete Entity, Why does validation occur?
      • From: Chuck Hill <email@hidden>
  • Prev by Date: Re: typesafe and chainable keypaths (was: Re: EOSortOrdering and keypaths [SOLVED])
  • Next by Date: WOBrowser fails in Ajax.
  • Previous by thread: Re: D2W Editing Non-Model Arrays
  • Next by thread: Re: Create Entity, Delete Entity, Why does validation occur?
  • Index(es):
    • Date
    • Thread