Re: Nested EOEditingContext Question

2009-09-06 Thread Chan Yeow Heong, Jerome
So what happens after I do nested.save(); original.save(); Does nested go away? Does it get garbage collected? What is the editing context of the objects manipulated after both saves are done? Is it original? On 05-Sep-2009, at 6:47 PM, Johann Werner wrote: Hi Jerome, Am 05.09.2009 um

Re: Nested EOEditingContext Question

2009-09-06 Thread Johann Werner
Am 06.09.2009 um 10:29 schrieb Chan Yeow Heong, Jerome: So what happens after I do nested.save(); This commits all changes of nested to original. original.save(); This commits all changes of original to the data storage (mostly this will be the database). Does nested go away? Does

Re: Nested EOEditingContext Question

2009-09-06 Thread Houdah - ML Pierre Bernard
Editing contexts within the same EOF stack get notified of changes and merge those in. This is unfortunately not always desirable behavior. A user could successfully overwrite information that is more recent than what he has seen displayed. I.e. if changes happened within the same EOF

Nested EOEditingContext Question

2009-09-05 Thread Chan Yeow Heong, Jerome
When I'm using nested editing contexts, do I need to call revert on a original editing context when I call revert on the nested context? EOEditingContext original = ERXEC.newEditingContext(true); EOEditingContext nested = ERXEC.newEditingContext(original,true); ... do some work ... ...

Re: Nested EOEditingContext Question

2009-09-05 Thread Johann Werner
Hi Jerome, Am 05.09.2009 um 11:50 schrieb Chan Yeow Heong, Jerome: When I'm using nested editing contexts, do I need to call revert on a original editing context when I call revert on the nested context? EOEditingContext original = ERXEC.newEditingContext(true); EOEditingContext nested =