You are here

public function ObjectManagerDecorator::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

Overrides ObjectManager::clear

File

lib/doctrine/common/lib/Doctrine/Common/Persistence/ObjectManagerDecorator.php, line 72

Class

ObjectManagerDecorator
Base class to simplify ObjectManager decorators

Namespace

Doctrine\Common\Persistence

Code

public function clear($objectName = null) {
  return $this->wrapped
    ->clear($objectName);
}