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 protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to