Re: (no subject)
Re: (no subject)
- Subject: Re: (no subject)
- From: Chuck Hill <email@hidden>
- Date: Tue, 13 Nov 2007 13:48:28 -0800
On Nov 13, 2007, at 1:11 PM, Julius Spencer wrote:
Hi,
I was using the following this morning:
ec.faultForGlobalID(memberGID, ec);
and felt a bit funny about putting ec in as an argument in a method
on ec.
I was wondering if anyone might know why ec is required as an
argument here (or in what capacity it is used). My only guess is
that it is because you might want to get an EO from another EC (a
temporary global id?).
The documentation seems pretty clear on this:
... the method propagates the message up the object store hierarchy,
through the parent object store ... In a nested editing context
configuration, where a parent EOEditingContext is sent
faultForGlobalID on behalf of a child EOEditingContext and globalID
identifies a newly inserted object in the parent, the parent
registers a copy of the object in the child.
So at some point you have parentEC.faultForGlobalID(memberGID, childEC);
Chuck
--
Practical WebObjects - for developers who want to increase their
overall knowledge of WebObjects or who are trying to solve specific
problems.
http://www.global-village.net/products/practical_webobjects
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
References: | |
| >(no subject) (From: Julius Spencer <email@hidden>) |