1
0
mirror of synced 2025-01-18 22:41:43 +03:00

DDC-3078 - cache instantiator related exceptions are not needed anymore

This commit is contained in:
Marco Pivetta 2014-04-10 04:18:51 +02:00 committed by fabios
parent df6a411365
commit 48e227167e

View File

@ -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