public function AbstractClassMetadataFactory::setCacheDriver in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/doctrine/common/lib/Doctrine/Common/Persistence/Mapping/AbstractClassMetadataFactory.php \Doctrine\Common\Persistence\Mapping\AbstractClassMetadataFactory::setCacheDriver()
Sets the cache driver used by the factory to cache ClassMetadata instances.
Parameters
\Doctrine\Common\Cache\Cache $cacheDriver:
Return value
void
File
- vendor/
doctrine/ common/ lib/ Doctrine/ Common/ Persistence/ Mapping/ AbstractClassMetadataFactory.php, line 75
Class
- AbstractClassMetadataFactory
- The ClassMetadataFactory is used to create ClassMetadata objects that contain all the metadata mapping informations of a class which describes how a class should be mapped to a relational database.
Namespace
Doctrine\Common\Persistence\MappingCode
public function setCacheDriver(Cache $cacheDriver = null) {
$this->cacheDriver = $cacheDriver;
}