#6017 moved ORMException::invalidEntityName
to ORMInvalidArgumentException::invalidEntityName
This commit is contained in:
parent
6b1d64d484
commit
c4d41fe56a
@ -210,6 +210,18 @@ class ORMInvalidArgumentException extends \InvalidArgumentException
|
||||
));
|
||||
}
|
||||
|
||||
/**
|
||||
* Used when a given entityName hasn't the good type
|
||||
*
|
||||
* @param mixed $entityName The given entity (which shouldn't be a string)
|
||||
*
|
||||
* @return self
|
||||
*/
|
||||
public static function invalidEntityName($entityName)
|
||||
{
|
||||
return new self(sprintf('Entity name must be a string, %s given', gettype($entityName)));
|
||||
}
|
||||
|
||||
/**
|
||||
* Helper method to show an object as string.
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user