Re: (CAY-362) Delete orphans

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Sun Sep 04 2005 - 15:04:46 EDT

  • Next message: Gili: "Re: (CAY-362) Delete orphans"

    On Sep 4, 2005, at 2:57 PM, Gili wrote:

    > I meant...
    >
    > A contains a list of B
    > B's relationship to A has a delete rule is set to "cascade"
    >
    > If I remember correctly, this is implemented by having column
    > "A_id" in each B item.
    >
    > Now, when B is deleted and it tries to cascade the operation to
    > A it'll find it can't delete it because A points to other Bs. In my
    > use-case I'd want it to then "nullify" instead of "cascade".

    Yes, a cascade rule makes no sense in the case when it points to the
    "owner". Nullify would be a correct one.

    Andrus



    This archive was generated by hypermail 2.0.0 : Sun Sep 04 2005 - 15:04:47 EDT