You are here

public function ObjectManagerDecorator::getClassMetadata in Plug 7

Returns the ClassMetadata descriptor for a class.

The class name must be the fully-qualified class name without a leading backslash (as it is returned by get_class($obj)).

Parameters

string $className:

Return value

\Doctrine\Common\Persistence\Mapping\ClassMetadata

Overrides ObjectManager::getClassMetadata

File

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

Class

ObjectManagerDecorator
Base class to simplify ObjectManager decorators

Namespace

Doctrine\Common\Persistence

Code

public function getClassMetadata($className) {
  return $this->wrapped
    ->getClassMetadata($className);
}