I'm using ERXEC auto locking without calling lock() explicitly and the method is a component action (called in the RR loop).
Ben On Wed, Jun 18, 2014 at 9:08 PM, Chuck Hill <ch...@global-village.net> wrote: > Is the child EC locked? > > On 2014-06-18, 2:27 PM, "Benjamin Chew" wrote: > > 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 (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com