Re: getting the database values of an object without changing the one in the current editing context
Re: getting the database values of an object without changing the one in the current editing context
- Subject: Re: getting the database values of an object without changing the one in the current editing context
- From: Ken Anderson <email@hidden>
- Date: Thu, 5 Jul 2007 07:52:15 -0400
Xavier,
EOF does this exact thing when it's deciding what has changed in your
object, and what updates it needs to perform. It does this by using
the snapshot, which is how I'd recommend you doing this as well.
It would help if you clued us in to *why* you need it - so that
answers could be crafted to your particular usage.
Ken
On Jul 5, 2007, at 6:28 AM, WO Dev wrote:
Hi,
I'm not sure my subject is understandable, anyway.
Assuming I have an object "x", I'm manipulating it in an editing
context. At a certain point I need to get the original object (the
one from the database) but without changing anything to the one in
my editing context.
How could I do that?
I need the object in its globality, so if I can get the object
directly and not a dictionary of its values it's better:)
You can answer "bla bla project wonder":) but please point me to
the correct method as I didn't find it for now;)
Thanks,
Xavier
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40anderhome.com
This email sent to email@hidden
_______________________________________________
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