Just to understand, what I have to do:
From table "A" I have a single select with a lookup table "B". I want to prevent deleting the record in table "B" if there are records in table "A" who are linked to this entry. (f.e.: the master/detail view in table "B" is not empty).
Do I have to do this with before_delete_hook or any other simple prevention possible?
From table "A" I have a single select with a lookup table "B". I want to prevent deleting the record in table "B" if there are records in table "A" who are linked to this entry. (f.e.: the master/detail view in table "B" is not empty).
Do I have to do this with before_delete_hook or any other simple prevention possible?