public function getClassMetadata($className)
    {
        try{
            return $this->entityManager->getClassMetadata($className);
        } catch(ORMException $e) {
            if (!$this->entityManager->isOpen()) {
                $this->resetEntityManager();
            }
            throw $e;
        }
    }
public function getClassMetadata($className)
    {
        try{
            return $this->entityManager->getClassMetadata($className);
        } catch(ORMException $e) {
            if (!$this->entityManager->isOpen()) {
                $this->resetEntityManager();
            }
            throw $e;
        }
    }
public function getClassMetadata ( $ className ) { try { return $ this -> entityManager -> getClassMetadata ( $ className ) ; } catch ( ORMException $ e ) { if ( ! $ this -> entityManager -> isOpen ( ) ) { $ this -> resetEntityManager ( ) ; } throw $ e ; } }
Returns the ORM metadata 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)) or an aliased class name.

Examples:
MyProject\Domain\User
sales:PriceRequest

Internal note: Performance-sensitive method.

@param string $className

@return \Doctrine\ORM\Mapping\ClassMetadata
Returns the ORM metadata descriptor for a class .