From abc853ec48cc7b31fe5b5899e91be574a3ad1d78 Mon Sep 17 00:00:00 2001 From: guilhermeblanco Date: Fri, 14 Aug 2009 18:22:41 +0000 Subject: [PATCH] [2.0] Documentation, documentation, documentation... --- lib/Doctrine/ORM/QueryBuilder.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/Doctrine/ORM/QueryBuilder.php b/lib/Doctrine/ORM/QueryBuilder.php index b28c1a458..afcc424e0 100644 --- a/lib/Doctrine/ORM/QueryBuilder.php +++ b/lib/Doctrine/ORM/QueryBuilder.php @@ -111,7 +111,7 @@ class QueryBuilder public function getDql() { - if ($this->_dql !== null && self::STATE_CLEAN) { + if ($this->_dql !== null && $this->_state === self::STATE_CLEAN) { return $this->_dql; } @@ -132,6 +132,7 @@ class QueryBuilder break; } + $this->_state = self::STATE_CLEAN; $this->_dql = $dql; return $dql;