From 48e227167e851c10b036bfc11bba52ad78545782 Mon Sep 17 00:00:00 2001 From: Marco Pivetta Date: Thu, 10 Apr 2014 04:18:51 +0200 Subject: [PATCH] DDC-3078 - cache instantiator related exceptions are not needed anymore --- lib/Doctrine/ORM/ORMException.php | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/lib/Doctrine/ORM/ORMException.php b/lib/Doctrine/ORM/ORMException.php index 90611ac33..799fd1b8d 100644 --- a/lib/Doctrine/ORM/ORMException.php +++ b/lib/Doctrine/ORM/ORMException.php @@ -262,19 +262,6 @@ class ORMException extends Exception return new self("Invalid repository class '".$className."'. It must be a Doctrine\Common\Persistence\ObjectRepository."); } - /** - * @param mixed $instantiator - * - * @return ORMException - */ - public static function invalidSecondLevelCacheInstantiator($instantiator) - { - return new self(sprintf( - 'The provided instantiator is not a valid callable, "%s" given.', - is_object($instantiator) ? get_class($instantiator) : gettype($instantiator) - )); - } - /** * @param string $className * @param string $fieldName