public function getMetadataFor($entityName, array $parentName = array())
    {
        return $this->hydrateDataObject(
            $this->entityManager->getMetadataFactory()->getMetadataFor($entityName),
            $parentName
        );
    }
public function getMetadataFor($entityName, array $parentName = array())
    {
        return $this->hydrateDataObject(
            $this->entityManager->getMetadataFactory()->getMetadataFor($entityName),
            $parentName
        );
    }
public function getMetadataFor ( $ entityName , array $ parentName = array ( ) ) { return $ this -> hydrateDataObject ( $ this -> entityManager -> getMetadataFactory ( ) -> getMetadataFor ( $ entityName ) , $ parentName ) ; }
Getting metadata for a particulary entity

@param  string                      $entityName name of entity
@return MetadataDataObjectDoctrine2
Getting metadata for a particulary entity