RE: Deletion of obejcts

From: Jan Lendholt (jlendhol..otmail.com)
Date: Mon Nov 19 2007 - 15:11:54 EST

  • Next message: Jan Lendholt: "RE: Deletion of obejcts"

    Well, what would be the right rule for me?

    I want - if booking recordset is deleted - to delete everything in extras.
    If a recordset in extras is deleted, I simply want the row to be deleted. That works perfectly - but the object graph seems not get updated :/

    > Date: Mon, 19 Nov 2007 15:08:38 -0500
    > Subject: Re: Deletion of obejcts
    > From: kmenar..ervprise.com
    > To: use..ayenne.apache.org
    >
    > Hi Jan,
    >
    > On 11/19/07 1:48 PM, "Jan Lendholt" <jlendhol..otmail.com> wrote:
    >
    > > The relationship is from booking to Extras one to many (1-n entries in Extra
    > > for one booking entry).
    > > I've set both relationships with delete rule to nullify.
    >
    > Are you sure that's correct? It would seem to me that you would want to
    > cascade in one direction and do nothing in the other. I.e., you would
    > probably want to delete all extras (cascade) if the Booking is deleted, but
    > do nothing if an Extra is deleted.
    >
    > --
    > Kevin Menard
    > Servprise International, Inc.
    > Remote reboot & power control for network equipment
    > www.servprise.com +1 508.892.3823 x308
    >

    _________________________________________________________________
    Die neue Version vom Windows Live Messenger ist da!
    http://get.live.com/messenger/overview



    This archive was generated by hypermail 2.0.0 : Mon Nov 19 2007 - 15:12:30 EST