Clears the ObjectManager. All objects that are currently managed
by this ObjectManager become detached.
Parameters
string $objectName if given, only objects of this type will get detached:
File
- drupal/core/vendor/doctrine/common/lib/Doctrine/Common/Persistence/ObjectManager.php, line 81
Class
- ObjectManager
- Contract for a Doctrine persistence layer ObjectManager class to implement.
Namespace
Doctrine\Common\Persistence
Code
function clear($objectName = null);