> * I have tried to create a trigger, that ensures the above. But this is,
> for some reason, not getting fired if the deletion of a slave row is a
> result of a foreign key cascading effect. So this is only of limited use.
I solved it:
The trigger should be fired BEFORE deletions and not after. Ofcourse.