Commit 5e264733 authored by romanb's avatar romanb

Fixed #636.

parent 8557d9d8
......@@ -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])) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment