Ok i will try to do it in a smarter way, but clear that is hard on
Monday morning ;)
Andrus Adamchik wrote:
>
>> From the example in your message, you do not the *exiting*
>> MasterScheduleAux objects, you still delete the old ones, and
>> reinsert them back.
>
> This of course should read "modify the existing MasterScheduleAux
> objects". Monday morning, tough time :-)
>
> Andrus
>
>
> On Jul 21, 2008, at 10:26 AM, Andrus Adamchik wrote:
>
>>
>> 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 - 04:58:54 EDT