Re: Shared vs regular editing contexts
Re: Shared vs regular editing contexts
- Subject: Re: Shared vs regular editing contexts
- From: Max Muller <email@hidden>
- Date: Wed, 11 Feb 2004 23:05:33 -0800
Hi Arturo,
My bet is that you have modeled a relationship from a shared entity to
a non-shared entity. This will cause non-shared objects to be faulted
into the shared ec instead of the regular ec. Marking the relationships
as not a class property is good enough to avoid the problem.
Regards.
Max
On Feb 11, 2004, at 7:55 PM, Arturo Pirez wrote:
On Feb 10, 2004, at 12:52 PM, Jonathan Rochkind wrote:
Well the session's defaultEditing context is a shared one by
default, isn't it? So it's not like I'm going
out of my way to use it :-)
No. The session's defaultEditingContext() is not an
EOSharedEditingContext. Normally there is only one
EOSharedEditingContext in your app (it may be possible but probably
not desirable to create more). Which you can access from
EOSharedEditingContext.defaultSharedEditingContext().
Each session has it's own defaultEditingContext(), seperate from
other session's default ECs, and the defaultEditingContext is not
(normally) an EOSharedEditingContext.
Well then I must be doing something accidentally evil. Since none of
my EOs are marked as shared
and the session default EC isn't shared then I'm at a loss to explain
why I get the "Shared
object already fetched in non-shared context" error. Time to run a
grep to see what I'm doing
with _the_ shared EC and why.
Thanks for all the clarification.
----
WO in philadelphia - wanna cheesesteak with that?
Please visit webobjects.meetup.com.
_______________________________________________
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.
_______________________________________________
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.