G
G
grabbee2020-09-06 08:06:32
Doctrine ORM
grabbee, 2020-09-06 08:06:32

How in Doctrine is it correct to use cascade deletion on a one-to-one basis?

For example, there may be some entity for the user. And she may not be. It can be removed. But when deleting an Account, it would be nice to delete this entity too. The main entity here is she. And the user is a slave. That is, these entities are selected by the list if they exist, and the user is attracted to them.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question