setMetadataDriverImpl() public method

Sets the cache driver implementation that is used for metadata caching.
public setMetadataDriverImpl ( Doctrine\OXM\Mapping\Driver\Driver $driverImpl )
$driverImpl Doctrine\OXM\Mapping\Driver\Driver
Example #1
0
 public function setUp()
 {
     $config = new Configuration();
     $config->setMetadataDriverImpl($config->newDefaultAnnotationDriver("tests/Doctrine/Tests/OXM/Entities"));
     $config->setMetadataCacheImpl(new \Doctrine\Common\Cache\ArrayCache());
     $this->metadataFactory = new ClassMetadataFactory($config);
     $this->marshaller = new XmlMarshaller($this->metadataFactory);
 }