local instances, child contexts, related EOs
local instances, child contexts, related EOs
- Subject: local instances, child contexts, related EOs
- From: Tom Woteki <email@hidden>
- Date: Sun, 21 Dec 2008 21:28:26 -0500
Hi All:
I've looked in various online tutorials etc but I haven't found the
answer to this question: when I create a local instance of an EO in a
child context, how to do I conveniently cause the related EOs to be
brought along into the child EC? I'm assuming there must be a method
or standard way of doing this but I can't see it.
I have tried this:
EOEditingContext ec, localEC;
myLocalEO = ec.localInstanceOfObject(localEC, myEO);
myLocalEO.updateFromSnapshot(myLocalEO.snapshot());
but this only results in faults for the related objects.
What is the practice for obtaining local copies of an EO and all its
related EOs? I want to do this in order to edit the locals in the
child EC.
Thanks
Tom
_______________________________________________
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