getMetadataFor() public method

Gets the class metadata descriptor for a class.
public getMetadataFor ( string $className ) : Doctrine\Common\Persistence\Mapping\ClassMetadata
$className string The name of the class.
return Doctrine\Common\Persistence\Mapping\ClassMetadata
コード例 #1
0
 /**
  * {@inheritdoc}
  *
  * @throws MappingException
  */
 public function getMetadataFor($className)
 {
     $metadata = parent::getMetadataFor($className);
     if ($metadata) {
         return $metadata;
     }
     throw MappingException::classNotMapped($className);
 }