Commit 42827580 authored by zYne's avatar zYne

fixed Doctrine_Query::count()

parent 8dc99daa
......@@ -356,8 +356,7 @@ class Doctrine_Query extends Doctrine_Hydrate implements Countable {
$params = array_merge($this->params, $params);
$a = $this->getConnection()->fetchOne($q, $params);
return $a[0];
return (int) $this->getConnection()->fetchOne($q, $params);
}
/**
* loadFields
......
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