Say you have departments and employees and each department has several employees, but each employee can also be part of several departments.
So there is a many-to-many relationship between employees and departments. When deleting a department I would like to delete all employees that are only part of that department and nullify the relationship to this department for all employees that are also member of another department.
Would a cascade-rule in both directions do that? Or does a cascade rule automatically delete all employees of a department regardless of other affiliations?
-prepareForDeletion
method. – Lear