Hello Ken,
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.
Actually I need it to save the previous object as a string (in fact
an xml representation).
So my process is to manipulate an object, and when I submit the
changes, just before saveChanges, I'm tracking who did this, when,
and the xml representation.
That's why I'd like to get the database "state" of the object when I
do te tracking part.
Xavier
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 protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/kenlists%
40anderhome.com
This email sent to [EMAIL PROTECTED]
_______________________________________________
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]