/**
  * 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()
 {
     $metadata = array();
     foreach ($this->driver->getAllClassNames() as $className) {
         $metadata[] = $this->getMetadataFor($className);
     }
     return $metadata;
 }