Fixed #626. Reopening the ticket for further issues is fine.
This commit is contained in:
parent
806e9c63e6
commit
a143caefe3
@ -1673,11 +1673,11 @@ class Doctrine_Query extends Doctrine_Query_Abstract implements Countable, Seria
|
||||
}
|
||||
|
||||
if ($indexBy !== null) {
|
||||
if ( ! $table->hasColumn($indexBy)) {
|
||||
if ( ! $table->hasColumn($table->getColumnName($indexBy))) {
|
||||
throw new Doctrine_Query_Exception("Couldn't use key mapping. Column " . $indexBy . " does not exist.");
|
||||
}
|
||||
|
||||
$this->_queryComponents[$componentAlias]['map'] = $table->getColumnName($indexBy);
|
||||
$this->_queryComponents[$componentAlias]['map'] = $indexBy;
|
||||
}
|
||||
return $this->_queryComponents[$componentAlias];
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user