From 7b64b4a2075e2225364aa4a7f59b866f43f5e499 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lu=C3=ADs=20Cobucci?= Date: Sat, 18 Aug 2018 14:42:25 +0200 Subject: [PATCH] Document getPartialReference() properly According to the current implementation that method also returns `null`, however the interface's documentation was incorrect. Ref: https://github.com/doctrine/doctrine2/blob/v2.6.2/lib/Doctrine/ORM/EntityManager.php#L514-L516 --- 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 3c1c580e9..c61e6973c 100644 --- a/lib/Doctrine/ORM/EntityManagerInterface.php +++ b/lib/Doctrine/ORM/EntityManagerInterface.php @@ -174,7 +174,7 @@ interface EntityManagerInterface extends ObjectManager * @param string $entityName The name of the entity type. * @param mixed $identifier The entity identifier. * - * @return object The (partial) entity reference. + * @return object|null The (partial) entity reference. */ public function getPartialReference($entityName, $identifier);