From 3777119557842eb4050334ed223e50eb8b6da74b Mon Sep 17 00:00:00 2001 From: Alexandre Quercia Date: Wed, 17 Apr 2024 23:14:14 +0200 Subject: [PATCH] add select relation identifier for array and record hierarchy --- lib/Doctrine/Query.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/Doctrine/Query.php b/lib/Doctrine/Query.php index 62f238e3..481b0496 100644 --- a/lib/Doctrine/Query.php +++ b/lib/Doctrine/Query.php @@ -679,7 +679,9 @@ private function appendRelationIdentifierOnSqlSelect() { $shouldSelectRelationIdentifier = in_array($this->_hydrator->getHydrationMode(), [ Doctrine_Core::HYDRATE_ARRAY, + Doctrine_Core::HYDRATE_ARRAY_HIERARCHY, Doctrine_Core::HYDRATE_RECORD, + Doctrine_Core::HYDRATE_RECORD_HIERARCHY, Doctrine_Core::HYDRATE_ON_DEMAND, ], true);