From fb7a96caf9fa217d0b3b43a23de35253f6c008c6 Mon Sep 17 00:00:00 2001 From: Benjamin Morel Date: Thu, 5 Oct 2017 00:27:11 +0200 Subject: [PATCH] EntityManager::getReference() can return null --- lib/Doctrine/ORM/EntityManagerInterface.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Doctrine/ORM/EntityManagerInterface.php b/lib/Doctrine/ORM/EntityManagerInterface.php index 09c7efdf9d2..3c1c580e935 100644 --- a/lib/Doctrine/ORM/EntityManagerInterface.php +++ b/lib/Doctrine/ORM/EntityManagerInterface.php @@ -150,7 +150,7 @@ public function createQueryBuilder(); * @param string $entityName The name of the entity type. * @param mixed $id The entity identifier. * - * @return object The entity reference. + * @return object|null The entity reference. * * @throws ORMException */