On Feb 1, 5:24 am, Manlio Perillo [EMAIL PROTECTED] wrote:
Hi.
I still do not fully understand cascade rules, however I want to be sure
the behaviour below is a feature and not a bug.
Did you intend for the B object to be able to not exist? I modified
your code to create a b object as
delete-orphan on the A relationship means, no A is allowed to
exist in the database without a parent B. the rule used to be more
lax and would only fire off when an A was removed from a B...but that
missed a lot of cases. the specificness of the error message
indicates its definitely not a bug
Michael Bayer ha scritto:
delete-orphan on the A relationship means, no A is allowed to
exist in the database without a parent B. the rule used to be more
lax and would only fire off when an A was removed from a B...but that
missed a lot of cases. the specificness of the error message