Re: Editing Context Redux...
Re: Editing Context Redux...
- Subject: Re: Editing Context Redux...
- From: Marek Wawrzyczny <email@hidden>
- Date: Fri, 23 Apr 2004 13:21:25 +1000
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.
On 22/04/2004, at 07:18, Jonathan 'Wolf' Rentzsch wrote:
Greetings James,
Is it possible to just do a localInstanceOfObject(ec, session) ???
No, but you can do:
EOUtilities.localInstanceOfObject( peerContext, session.myEO )
Assuming session.myEO is an Enterprise Object stored in your session's
default editing context.
| Jonathan 'Wolf' Rentzsch http://rentzsch.com
| Red Shed Software http://redshed.net
| "better" necessarily means "different"
_______________________________________________
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.
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.