From a3348ddaa95901be279654ba1d68ad022dc9cc8d Mon Sep 17 00:00:00 2001 From: guilhermeblanco Date: Fri, 15 Feb 2008 14:49:21 +0000 Subject: [PATCH] Applied patch provided by ticket #788 in 0.9, 0.10 and trunk --- lib/Doctrine/Query.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/Doctrine/Query.php b/lib/Doctrine/Query.php index 122bcb385..583f43609 100644 --- a/lib/Doctrine/Query.php +++ b/lib/Doctrine/Query.php @@ -1062,6 +1062,7 @@ class Doctrine_Query extends Doctrine_Query_Abstract implements Countable, Seria $this->_queryComponents = array(); $this->_pendingAggregates = array(); $this->_aggregateAliasMap = array(); + $this->_enumParams = array(); } $this->reset(); @@ -1074,12 +1075,11 @@ class Doctrine_Query extends Doctrine_Query_Abstract implements Countable, Seria $this->_processDqlQueryPart($queryPartName, $queryParts); } $this->_state = self::STATE_CLEAN; - - $params = $this->convertEnums($params); + $params = $this->convertEnums($params); // Proceed with the generated SQL - + if (empty($this->_sqlParts['from'])) { return false; }