Skip to content

Commit

Permalink
Revert "Remove unused exception"
Browse files Browse the repository at this point in the history
This reverts commit 689da1f.
  • Loading branch information
beberlei committed Oct 9, 2024
1 parent 498de4c commit 4a3c7f0
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/Query/QueryException.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,15 @@ 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<string, string> $assoc
Expand Down

0 comments on commit 4a3c7f0

Please sign in to comment.