You are here

public function ObjectManager::clear in Plug 7

Clears the ObjectManager. All objects that are currently managed by this ObjectManager become detached.

Parameters

string|null $objectName if given, only objects of this type will get detached.:

Return value

void

1 method overrides ObjectManager::clear()
ObjectManagerDecorator::clear in lib/doctrine/common/lib/Doctrine/Common/Persistence/ObjectManagerDecorator.php
Clears the ObjectManager. All objects that are currently managed by this ObjectManager become detached.

File

lib/doctrine/common/lib/Doctrine/Common/Persistence/ObjectManager.php, line 88

Class

ObjectManager
Contract for a Doctrine persistence layer ObjectManager class to implement.

Namespace

Doctrine\Common\Persistence

Code

public function clear($objectName = null);