From 5e264733400d716080cc0dac8de2f8107cb69189 Mon Sep 17 00:00:00 2001 From: romanb Date: Sun, 2 Dec 2007 12:56:15 +0000 Subject: [PATCH] Fixed #636. --- lib/Doctrine/RawSql.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Doctrine/RawSql.php b/lib/Doctrine/RawSql.php index 11d5936e1..456129bda 100644 --- a/lib/Doctrine/RawSql.php +++ b/lib/Doctrine/RawSql.php @@ -211,7 +211,7 @@ class Doctrine_RawSql extends Doctrine_Query_Abstract foreach ($this->getTableAliasMap() as $tableAlias => $componentAlias) { $map = $this->_queryComponents[$componentAlias]; - foreach ((array) $map['table']->getIdentifier() as $key) { + foreach ((array) $map['table']->getIdentifierColumnNames() as $key) { $field = $tableAlias . '.' . $key; if ( ! isset($this->_sqlParts['select'][$field])) {