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