Re: Editing Context Redux...
Re: Editing Context Redux...
- Subject: Re: Editing Context Redux...
- From: Chuck Hill <email@hidden>
- Date: Thu, 22 Apr 2004 20:42:06 -0700
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.
>
>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.
>
>
--
Chuck Hill email@hidden
Global Village Consulting Inc. http://www.global-village.net
_______________________________________________
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.