I am trying to create an error message in the case where a parent object has been called to be deleted but there are still child objects within that object. For example, there is a project object that contains several customer objects. I want an error message to appear if the project object is deleted but the project still has a customer attached with it then to have an error message appear.
Is there a certain annotation that can check if any customers are present?