Re: “undelete”?

2016-03-23 Thread Ricardo Parada
:23, Chuck Hill wrote: >> >>> As a first idea, you could make an EC subclass that was able to identify >>> these ready only instances and not call super in deleteObject(). >>> >>> Chuck >>> >>> >>> >>> >>> >>> On 2016-

Re: “undelete”?

2016-03-21 Thread Chuck Hill
eleteObject(). >> >> Chuck >> >> >> >> >> >> On 2016-03-21, 1:17 PM, >> "webobjects-dev-bounces+chill=gevityinc@lists.apple.com on behalf of OC" >> > o...@ocs.cz> wrote: >> >>> Hello there, >

Re: “undelete”?

2016-03-21 Thread OC
ready only instances and not call super in deleteObject(). > > Chuck > > > > > > On 2016-03-21, 1:17 PM, > "webobjects-dev-bounces+chill=gevityinc@lists.apple.com on behalf of OC" > o...@ocs.cz> wrote: > >> Hello there, >> >>

Re: “undelete”?

2016-03-21 Thread Chuck Hill
Klaus Berkling" wrote: > >> On Mar 21, 2016, at 1:17 PM, OC wrote: >> >> Hello there, >> >> is there a trick to “undelete” an object in editing context? >> > >Does EOEditingContext.revert() do what you want? > >http://wocommunity.org/doc

Re: “undelete”?

2016-03-21 Thread Klaus Berkling
> On Mar 21, 2016, at 1:17 PM, OC wrote: > > Hello there, > > is there a trick to “undelete” an object in editing context? > Does EOEditingContext.revert() do what you want? http://wocommunity.org/documents/javadoc/WebObjects/5.4.2/index.html?com%252Fwebobj

Re: “undelete”?

2016-03-21 Thread Chuck Hill
gt;is there a trick to “undelete” an object in editing context? > >Before saveChanges, I go through ec.deletedObjects(), and in some very special >cases, I might find that an object should NOT be deleted. Just like it has >never been added to deletedObjects at all. > >I've

“undelete”?

2016-03-21 Thread OC
Hello there, is there a trick to “undelete” an object in editing context? Before saveChanges, I go through ec.deletedObjects(), and in some very special cases, I might find that an object should NOT be deleted. Just like it has never been added to deletedObjects at all. I've tri