Doctrine\ORM\UnitOfWork::scheduleOrphanRemoval
INTERNAL: Schedules an orphaned entity for removal. The remove() operation will be invoked on that entity at the beginning of the next commit of this UnitOfWork.
Signature
Parameters
$entity
— object