Doctrine\Bundle\DoctrineBundle\Mapping\MetadataFactory::getNamespaceMetadata
Gets the metadata of all classes of a namespace.
Signature
public function getNamespaceMetadata(string
$namespace,
[string
$path = null] )
Parameters
$namespace
— string- A namespace name
$path
— string- The path where the class is stored (if known)
Returns
- ClassMetadataCollection
- A ClassMetadataCollection instance
Errors/Exceptions
-
RuntimeException
- When namespace not contain mapped entities