I have entities Word
and Tag
. Both have To-Many
relationship to each other, as well as inverse. The way I need to constrain it that:
- if I delete a Word then only the related Tags which has no Word pointing to them will be deleted
- if I delete a Tag which has Words pointing to it then just nullify those set items.
Is it possible to model?