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