Doctrine\OXM\Configuration::getMetadataDriverImpl PHP Method

getMetadataDriverImpl() public method

Gets the cache driver implementation that is used for the mapping metadata.
public getMetadataDriverImpl ( ) : Doctrine\OXM\Mapping\Driver\Driver
return Doctrine\OXM\Mapping\Driver\Driver
    public function getMetadataDriverImpl()
    {
        return isset($this->attributes['classMetadataDriverImpl']) ? $this->attributes['classMetadataDriverImpl'] : null;
    }

Usage Example

 /**
  * Lazy initialization of this stuff, especially the metadata driver,
  * since these are not needed at all when a metadata cache is active.
  */
 protected function initialize()
 {
     $this->driver = $this->configuration->getMetadataDriverImpl();
     if (null === $this->evm) {
         $this->evm = new EventManager();
     }
     $this->initialized = true;
 }