Re: Editing Context Redux...
Re: Editing Context Redux...
- Subject: Re: Editing Context Redux...
- From: Marek Wawrzyczny <email@hidden>
- Date: Fri, 23 Apr 2004 14:00:13 +1000
Tell me about it. I've spent a long time trying to figure out why the
returned EO was null... I guess your answer provides even more reason
to investigate parent/child ECs.
On 23/04/2004, at 13:42, Chuck Hill wrote:
IIRC this works OK between parent and child nested editing contexts.
But
where it does not work an exception would be preferable to null.
Chuck
At 01:21 PM 23/04/2004 +1000, Marek Wawrzyczny wrote:
Be careful not to use an EO that has not been committed to the
database
when using EOUtilities.localInstanceOfObject( ) ie. the EOs that have
been only inserted into an editing context, not saved.
localInstanceOfObject will return null.
It makes sense when you think about it but it's a pity that WO
JavaDocs
don't mention that behaviour.
Marek Wawrzyczny
software engineer
-------------------------->
ish group pty ltd
7 Darghan St Glebe 2037 Australia
phone +61 2 9660 1400 fax +61 2 9660 7400
http www.ish.com.au | email email@hidden
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.