From bc717ac900420917e636907f7e5c5b3b77892692 Mon Sep 17 00:00:00 2001 From: zYne Date: Thu, 7 Jun 2007 18:31:11 +0000 Subject: [PATCH] --- lib/Doctrine/Query.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Doctrine/Query.php b/lib/Doctrine/Query.php index af37f2147..9ac2b041c 100644 --- a/lib/Doctrine/Query.php +++ b/lib/Doctrine/Query.php @@ -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();