Commit ff892b17 authored by zYne's avatar zYne

fixed enum parameter conversion in count()

parent ca736ec7
...@@ -1838,6 +1838,8 @@ class Doctrine_Query extends Doctrine_Query_Abstract implements Countable ...@@ -1838,6 +1838,8 @@ class Doctrine_Query extends Doctrine_Query_Abstract implements Countable
// append parameters // append parameters
$params = array_merge($this->_params['where'], $this->_params['having'], $params); $params = array_merge($this->_params['where'], $this->_params['having'], $params);
$params = $this->convertEnums($params);
$results = $this->getConnection()->fetchAll($q, $params); $results = $this->getConnection()->fetchAll($q, $params);
if (count($results) > 1) { if (count($results) > 1) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment