Generator/Template/Template.php
protected function getEntityMetadata($entity, $path = null)
    {
        $factory = new DisconnectedMetadataFactory($this->getContainer()->get('doctrine'));

        return $factory->getClassMetadata($entity, $path)->getMetadata();
    }
protected function getEntityMetadata($entity, $path = null)
    {
        $factory = new DisconnectedMetadataFactory($this->getContainer()->get('doctrine'));

        return $factory->getClassMetadata($entity, $path)->getMetadata();
    }
protected function getEntityMetadata ( $ entity , $ path = null ) { $ factory = new DisconnectedMetadataFactory ( $ this -> getContainer ( ) -> get ( 'doctrine' ) ) ; return $ factory -> getClassMetadata ( $ entity , $ path ) -> getMetadata ( ) ; }
Get entity metadata

@param string $entity
@param string $path

@return array
@throws MappingException
Get entity metadata