From 8f77afdc3447724f91c655f7cbef9f60998103c6 Mon Sep 17 00:00:00 2001 From: Marco Pivetta Date: Sun, 27 Nov 2016 18:12:00 +0100 Subject: [PATCH] #6017 removed unused `ORMException::invalidEntityName` --- lib/Doctrine/ORM/ORMException.php | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/lib/Doctrine/ORM/ORMException.php b/lib/Doctrine/ORM/ORMException.php index edfc47df6..039ef2eaa 100644 --- a/lib/Doctrine/ORM/ORMException.php +++ b/lib/Doctrine/ORM/ORMException.php @@ -340,16 +340,4 @@ class ORMException extends Exception { return new self("Can't use IN operator on entities that have composite keys."); } - - /** - * Used when a given entityName hasn't the good type - * - * @param mixed $entityName The given entity (which shouldn't be a string) - * - * @return ORMException - */ - public static function invalidEntityName($entityName) - { - return new self(sprintf('Entity name must be a string, %s given', gettype($entityName))); - } }