• 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
Child editing context not getting updated with save
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Child editing context not getting updated with save


  • Subject: Child editing context not getting updated with save
  • From: Benjamin Chew <email@hidden>
  • Date: Wed, 18 Jun 2014 14:27:10 -0700

Hi All,

I'm new to dealing with child editing contexts and am wondering if anyone can help shed some light on this issue.

So I have a parent EC and a child EC, and I fetch an object into the child EC. I then modify the object by using code like this:

EOEditingContext tempEC = ERXEC.newEditingContext();

Object objectInTempEC = theObject.localInstanceIn(tempEC);

objectInTempEC.setFlag(1);

tempEC.saveChanges();


The change gets saved to the database and is propagated to the parent EC (because it is a peer to the "tempEC"), but the problem is that the change doesn't then get propagated down to the child EC.

Does anyone know why this happens and what to do about it?

As usual, thanks in advance!

Ben
 _______________________________________________
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: Child editing context not getting updated with save
      • From: Chuck Hill <email@hidden>
  • Prev by Date: Re: Multi Application Instance and propagation of EO changes
  • Next by Date: Re: Child editing context not getting updated with save
  • Previous by thread: Re: Problems with WOJenkins?
  • Next by thread: Re: Child editing context not getting updated with save
  • Index(es):
    • Date
    • Thread