Doctrine\Bundle\DoctrineBundle\Mapping\MetadataFactory::getClassMetadata
Gets the metadata of a class.
Signature
public function getClassMetadata(string
$class,
[string
$path = null] )
Parameters
$class
— string- A class name
$path
— string- The path where the class is stored (if known)
Returns
- ClassMetadataCollection
- A ClassMetadataCollection instance
Errors/Exceptions
-
MappingException
- When class is not valid entity or mapped superclass