• 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
An EOEditingContext Problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

An EOEditingContext Problem


  • Subject: An EOEditingContext Problem
  • From: "Jonathan Fleming" <email@hidden>
  • Date: Mon, 28 Mar 2005 14:26:51 +0100

Simple senario really but has proved a little runt to get rid of.
using the default ec I simply delete an object and it disappears fine with all the ownership cascading done and so the database is happy too, however, I go to delete another object right after it and this time I get the error message:
Cannot obtain globalId for an object which is not registered in any editingContext, object: {values = {contentText = "<FONT face=Times-Roman> <P>test text</P></FONT>"; status = "05"; modificationDate = <com.webobjects.foundation.NSKeyValueCoding$Null>; }; this = "<TbNavPageContent cfc659 [Gid Not Found]>"; }, databaseContext: com.webobjects.eoaccess.EODatabaseContext@1cd0888, object's editingContext: null, databaseContext's active editingContext: com.webobjects.eocontrol.EOEditingContext@121f956


The value in this error is the object that was deleted prior to this deletion that now throws the error because it is looking for the deleted item. How is this still in the editing context if it has already gone with no errors and no complaints from the database or validations etc.?
In the EOModel the relationship name tbNavPageContents is set up as:
tbNavPage <---->>> tbNavPageContent


Any ideas, thanks
Jonathan :^#


_______________________________________________ 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: An EOEditingContext Problem
      • From: Kaj Hejer <email@hidden>
  • Prev by Date: Re : WOCheckboxMatrix and Cellpading/Cellspacing
  • Next by Date: WO JavaCocoa
  • Previous by thread: Re: Storing byte[] array
  • Next by thread: Re: An EOEditingContext Problem
  • Index(es):
    • Date
    • Thread