• 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
To-many relationship delete problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

To-many relationship delete problem


  • Subject: To-many relationship delete problem
  • From: Lon Varscsak <email@hidden>
  • Date: Wed, 18 Nov 2009 13:18:11 -0700

I'm having a problem where I'm removing an object from a to-many relationship (that owns destination) and the objects are remaining in the editing context after processRecentChanges() is called (or saveChanges())...which then results in an exception being thrown because I have objects that are orphaned and don't have a required relationship set (since it was cleared in the "remove" operation).

I swear this is something new...because I tested this a few weeks ago, and I fear it's caused by updating my version of Wonder....but I can't figure out why or where it's all going wrong.

Disclosures:

* I am deleting an object that was also inserted into the same editing context...both not in the database (so temporary gids)
* The editing context in question is a child editing context for another, but I don't think that's the issue, because I can get it to happen without this setup.
* Using Wonder from 11/16/2009 (previous version unknown...sometime in Oct probably)
* WO 5.4.3
* I'm using Wonder with updateInverseRelationships=true (although I can get it to fail with =false) ...and the relationship on both sides is correct, it's just that it didn't remove the object from the insertedObjects array

Thanks,

Lon
 _______________________________________________
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: To-many relationship delete problem
      • From: Lon Varscsak <email@hidden>
  • Prev by Date: RE: MS "Smart Quotes"
  • Next by Date: Re: To-many relationship delete problem
  • Previous by thread: RE: MS "Smart Quotes"
  • Next by thread: Re: To-many relationship delete problem
  • Index(es):
    • Date
    • Thread