From 7b2a2ac84cdbcecab15e437e9dd403f57667813a Mon Sep 17 00:00:00 2001 From: pookey Date: Mon, 16 Apr 2007 13:49:14 +0000 Subject: [PATCH] refs #307 comment 3 --- lib/Doctrine/Hydrate.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/Doctrine/Hydrate.php b/lib/Doctrine/Hydrate.php index ad04886cf..9761dee60 100644 --- a/lib/Doctrine/Hydrate.php +++ b/lib/Doctrine/Hydrate.php @@ -225,6 +225,9 @@ abstract class Doctrine_Hydrate extends Doctrine_Access // copy the aliases to the subquery $obj->copyAliases($this); + // this prevents the 'id' being selected, re ticket #307 + $obj->isSubquery(true); + return $obj; } /**