This commit is contained in:
parent
db02c85e57
commit
bc717ac900
1 changed files with 1 additions and 1 deletions
|
@ -1129,7 +1129,7 @@ class Doctrine_Query extends Doctrine_Query_Abstract implements Countable
|
|||
$table = $map['table'];
|
||||
|
||||
// build the query base
|
||||
$q = 'SELECT COUNT(DISTINCT ' . $this->getTableAlias($table->getTableName())
|
||||
$q = 'SELECT COUNT(DISTINCT ' . $this->getTableAlias($componentAlias)
|
||||
. '.' . $table->getIdentifier()
|
||||
. ') FROM ' . $this->buildFromPart();
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue