From ee3bf044a60337f5354511a702cf164e746aebc3 Mon Sep 17 00:00:00 2001 From: jwage Date: Wed, 23 Jan 2008 00:39:37 +0000 Subject: [PATCH] fixes #674 --- lib/Doctrine/Query.php | 11 +++++++++++ 1 file changed, 11 insertions(+) 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();