From 5cbc3fc817f943d3e97f34228b208af9eaf0e050 Mon Sep 17 00:00:00 2001 From: zYne Date: Tue, 17 Oct 2006 17:23:59 +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 aa4afe73a..1083021e1 100644 --- a/lib/Doctrine/Query.php +++ b/lib/Doctrine/Query.php @@ -161,7 +161,7 @@ class Doctrine_Query extends Doctrine_Hydrate implements Countable { $q = "SELECT COUNT(DISTINCT ".$table->getTableName().'.'.$table->getIdentifier().") FROM ".$table->getTableName()." "; foreach($join as $j) { - $q .= implode(" ",$j); + $q .= ' '.implode(" ",$j); } $string = $this->applyInheritance();