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