Doctrine\OXM\Mapping\Driver\Driver::getAllClassNames PHP Method

getAllClassNames() public method

Gets the names of all mapped classes known to this driver.
public getAllClassNames ( ) : array
return array The names of all mapped classes known to this driver.
    public function getAllClassNames();

Usage Example

 /**
  * 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;
 }