Re: Queries order on commit.

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Mon Jul 21 2008 - 03:32:29 EDT

  • Next message: Wout: "Re: Retrieve extra, generated column when loading objects"

    > 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 - 03:33:12 EDT