diff --git a/lib/Doctrine/Query.php b/lib/Doctrine/Query.php index 819f915ac..9d5239889 100644 --- a/lib/Doctrine/Query.php +++ b/lib/Doctrine/Query.php @@ -193,6 +193,17 @@ class Doctrine_Query extends Doctrine_Query_Abstract implements Countable, Seria */ public function reset() { + $this->_dqlParts = array('from' => array(), + 'select' => array(), + 'forUpdate' => false, + 'set' => array(), + 'join' => array(), + 'where' => array(), + 'groupby' => array(), + 'having' => array(), + 'orderby' => array(), + 'limit' => array(), + 'offset' => array()); $this->_pendingJoinConditions = array(); $this->_pendingSubqueries = array(); $this->_pendingFields = array();