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; }