Re: Question on editing contexts
Re: Question on editing contexts
- Subject: Re: Question on editing contexts
- From: Chuck Hill <email@hidden>
- Date: Tue, 20 Jul 2004 16:14:53 -0700
On Jul 20, 2004, at 3:51 PM, Steve Sharman wrote:
Hi,
I've got what is probably quite a naive question on editing contexts.
If an object A in my application automatically fetches an object B
through a relationship (e.g. if A is Organisation, and B is Rooms, and
there is a relationship A <-->> B, and I display a page which shows
all the rooms for an organisation in a table within a WORepetition),
are all of the B objects fetched automatically inserted into an
editing context (the default one, I guess)?
No. Inserting is for new objects that are not yet in the database.
The B objects are fetched (if not previously) and then *faulted* (see
EOFaulting) into the editing context.
If so, can I make changes to one of the retrieved B objects using it's
methods and save these changes by saving changes on the
defaultEditingContext,
Yes, that is the proper way to do things.
Chuck
_______________________________________________
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.