Forces the factory to load the metadata of all classes known to the underlying mapping driver.
array The ClassMetadata instances of all mapped classes.
Overrides ClassMetadataFactory::getAllMetadata
public function getAllMetadata() {
if (!$this->initialized) {
$this
->initialize();
}
$driver = $this
->getDriver();
$metadata = array();
foreach ($driver
->getAllClassNames() as $className) {
$metadata[] = $this
->getMetadataFor($className);
}
return $metadata;
}