Re: Updated objects not present in updatedObjects() array ?
Re: Updated objects not present in updatedObjects() array ?
- Subject: Re: Updated objects not present in updatedObjects() array ?
- From: Adam Czysciak <email@hidden>
- Date: Fri, 2 Jun 2006 15:24:31 +0200
On Jun 2, 2006, at 12:46 PM, Ken Anderson wrote:
Usually when I have a bug like this, there's a relationship somewhere
to an object in a different editing context. Are you sure that
everything is in the same context? I realize your code example is,
but often that's not the whole picture.
There is, but everything I do has the same context. I have a page for
browsing actors (one editing context), and another component which does
this stuff with actor's movie and it uses its own component (but first
I do localInstanceOfObject() on actor)
I played with it a bit more today... and I found this one working:
ec.saveChanges();
if (old value != new value) {
movie.setIsReallyCool(old value); // yes, this is the OLD
value, so saveChanges does nothing
ec.saveChanges();
movie.setIsReallyCool(new value);
ec.saveChanges(); // and this one finally saves the data...
}
--
Regards,
Adam Czysciak
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