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