i need to disallow delete function in an entity if is linked to another
for example there are two entity Product and Category, and Category is linked to Product with a relationship oneToMany or ManytoMany
i want disallow the delete function of an element in Category if this element is linked in a product element
is possible?
thank you