예제 #1
0
 /**
  * @param string $className
  *
  * @throws \Doctrine\ORM\ORMException If is not a \Doctrine\ORM\Cache
  */
 public function setCacheClassName($className)
 {
     $reflectionClass = new \ReflectionClass($className);
     if (!$reflectionClass->implementsInterface('Doctrine\\ORM\\Cache')) {
         throw ORMException::invalidSecondLevelCache($className);
     }
     $this->cacheClassName = $className;
 }