Doctrine\ORM\Persisters\BasicEntityPersister::delete
Deletes a managed entity.
The entity to delete must be managed and have a persistent identifier. The deletion happens instantaneously. Subclasses may override this method to customize the semantics of entity deletion.
Signature
Parameters
$entity
— object- The entity to delete.