fixed Doctrine_Query::count()
This commit is contained in:
parent
8dc99daa9f
commit
4282758023
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user