From 318aa82c3dc2e3306c268557fc6fd42d5dab1e11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20Paris?= Date: Tue, 10 Oct 2023 12:32:16 +0200 Subject: [PATCH] Remove unused exception --- lib/Doctrine/ORM/Query/QueryException.php | 9 --------- 1 file changed, 9 deletions(-) diff --git a/lib/Doctrine/ORM/Query/QueryException.php b/lib/Doctrine/ORM/Query/QueryException.php index 658ecb7a964..1f0e4728936 100644 --- a/lib/Doctrine/ORM/Query/QueryException.php +++ b/lib/Doctrine/ORM/Query/QueryException.php @@ -88,15 +88,6 @@ public static function iterateWithFetchJoinCollectionNotAllowed(AssociationMappi ); } - public static function partialObjectsAreDangerous(): self - { - return new self( - 'Loading partial objects is dangerous. Fetch full objects or consider ' . - 'using a different fetch mode. If you really want partial objects, ' . - 'set the doctrine.forcePartialLoad query hint to TRUE.', - ); - } - /** * @param string[] $assoc * @psalm-param array $assoc