You are here

public function ObjectManagerDecorator::clear in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/doctrine/common/lib/Doctrine/Common/Persistence/ObjectManagerDecorator.php \Doctrine\Common\Persistence\ObjectManagerDecorator::clear()

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

vendor/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);
}