Closed GoogleCodeExporter closed 8 years ago
Jeff, what do you think about the proposed solution for this? I'll knock this
one out if you don't see any
problems with it.
Turns out this issue explains a bug in my own program, in which I add a Person,
delete that person, and add
another Person with a different name. After that second Person is added, it
shows the name of the first Person
instead of the first.
Original comment by kennethr...@gmail.com
on 23 Jan 2009 at 8:55
It looks fine, don't think there's a need to worry about the child objects - if
cascade is called, this same method
will get called on all the children, if they didn't request a cascading delete
then we definitely wouldn't want to
delete the children.
Original comment by jeff.lam...@gmail.com
on 23 Jan 2009 at 9:07
Resolved by ensuring the deleted object is unregistered during the deletion
process. Note that given the
methods currently available that this requires the object to be loaded into
memory in the event it wasn't already,
as would possibly be the case when deleting by PK.
Confirmed this resolved my display issue, in which adding an object, deleting
it, and then adding another caused
the new object to display as the original.
Original comment by kennethr...@gmail.com
on 23 Jan 2009 at 9:58
Original issue reported on code.google.com by
d...@mac.com
on 27 Oct 2008 at 6:51