1
0
mirror of synced 2025-02-02 13:31:45 +03:00

#6017 moved ORMException::invalidEntityName to ORMInvalidArgumentException::invalidEntityName

This commit is contained in:
Marco Pivetta 2016-11-27 18:08:03 +01:00
parent 6b1d64d484
commit c4d41fe56a

View File

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