On Jul 18, 2008, at 7:03 PM, Laurent Marchal wrote:
> I managed to modify directly the object, removing the relation from
> MasterSchedule->MasterScheduleAux after deleting
> the MasterScheduleAux object.
From the example in your message, you do not the *exiting*
MasterScheduleAux objects, you still delete the old ones, and reinsert
them back. I suggest that in 'createAux' method you first check if
there is an existing matching MasterScheduleAux object attached to
"this" MasterSchedule for a given compound FK, and use this object if
it exists, instead of creating a new one.
Andrus
This archive was generated by hypermail 2.0.0 : Mon Jul 21 2008 - 03:26:56 EDT