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".
Gili
Andrus Adamchik wrote:
>
> On Sep 4, 2005, at 2:33 PM, Gili wrote:
>
>> Just to be clear, what currently happens if cascade is set to "delete"?
>
>
> You mean delete rule set to "CASCADE" ? ... or "DENY" ?
>
>> Does Cayenne try deleting the row only to find out it can't and then
>> throw an exception?
>
>
> Don't understand. Why would Cayenne find out that it can't? Maybe you
> are talking about "Deny" rule, not "Cascade"? Then yes - an exception
> is thrown.
>
> Andrus
-- http://www.desktopbeautifier.com/
This archive was generated by hypermail 2.0.0 : Sun Sep 04 2005 - 14:57:49 EDT