Doctrine\ORM\UnitOfWork::doRemove
Deletes an entity as part of the current unit of work.
This method is internally called during delete() cascades as it tracks the already visited entities to prevent infinite recursions.
Signature
Parameters
$entity
— object- The entity to delete.
$visited
— array- The map of the already visited entities.
Errors/Exceptions
-
ORMInvalidArgumentException
- If the instance is a detached entity.
-
UnexpectedValueException