Doctrine\ORM\EntityManager::clear
Clears the EntityManager. All entities that are currently managed by this EntityManager become detached.
Signature
public function clear([string
$entityName = null] )
Parameters
$entityName
— string- if given, only entities of this type will get detached