Re: Multiple EOEditingContexts
Re: Multiple EOEditingContexts
- Subject: Re: Multiple EOEditingContexts
- From: Chuck Hill <email@hidden>
- Date: Thu, 04 Mar 2004 17:09:51 -0800
This is somewhat of a gaping hole in the otherwise fine job EOF does of
maintaining object graph consistency. See
http://wodev.spearway.com/cgi-bin/WebObjects/WODev.woa/wa/Main?wikiPage=Refr
eshingToManyRelationships
Chuck
At 12:55 AM 05/03/2004 +0100, David Griffith wrote:
>HI,
>
>I have a component which displays among other things a list of
>CustDeliveryAddress objects. These are obtained via
>customerOrder.customer().custDeliveryAddresses(). This is what the
>repetition is based on.
>
>I also have a 2nd editing context which permits me to insert new
>CustDeliveryAddress objects without saving the default editing context to
>the db just yet.
>
>The problem is, when the new CustDeliveryAddress object is inserted via the
>second editing context, and the page refreshes, the default editing context
>does not see the new object (or at least it doesn't appear on the page as
>part of the list of custDeliveryAddresses().
>
>Do I need to 'refresh' the default editing context in some way, or am I
>missing something? The new objects are being stored in the database no
>problem and if I stop the application and relaunch it, they appear in the
>list fine. It sounds like some small problem but I don't know where to go
>next.
>
>Any help is much appreciated.
>
>Regards,
>Dave.
>_______________________________________________
>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.