From ff892b17c30fc6b41fb06dca6e0901c032ba28bd Mon Sep 17 00:00:00 2001 From: zYne Date: Wed, 14 Nov 2007 21:57:05 +0000 Subject: [PATCH] fixed enum parameter conversion in count() --- lib/Doctrine/Query.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/Doctrine/Query.php b/lib/Doctrine/Query.php index e20edb131..e7948916e 100644 --- a/lib/Doctrine/Query.php +++ b/lib/Doctrine/Query.php @@ -1838,6 +1838,8 @@ class Doctrine_Query extends Doctrine_Query_Abstract implements Countable // append parameters $params = array_merge($this->_params['where'], $this->_params['having'], $params); + $params = $this->convertEnums($params); + $results = $this->getConnection()->fetchAll($q, $params); if (count($results) > 1) {