DDC-3078 - cache instantiator related exceptions are not needed anymore
This commit is contained in:
parent
df6a411365
commit
48e227167e
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user