From 9795cb1f0dc084fdb33cef5230773a3886bc3f88 Mon Sep 17 00:00:00 2001 From: Guilherme Blanco Date: Wed, 21 Sep 2011 17:35:38 -0300 Subject: [PATCH] Subqueries should never add items to ResultSetMapping. Fixing possible broken inclusion. --- lib/Doctrine/ORM/Query/SqlWalker.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/lib/Doctrine/ORM/Query/SqlWalker.php b/lib/Doctrine/ORM/Query/SqlWalker.php index 77e5d5faa..0f1c79542 100644 --- a/lib/Doctrine/ORM/Query/SqlWalker.php +++ b/lib/Doctrine/ORM/Query/SqlWalker.php @@ -1332,9 +1332,6 @@ class SqlWalker implements TreeWalker $sql .= $this->walkCaseExpression($expr) . ' AS ' . $columnAlias; $this->_scalarResultAliasMap[$alias] = $columnAlias; - - $columnAlias = $this->_platform->getSQLResultCasing($columnAlias); - $this->_rsm->addScalarResult($columnAlias, $alias); } else { // IdentificationVariable $class = $this->_queryComponents[$expr]['metadata'];