1
0
mirror of synced 2024-12-14 07:06:04 +03:00

fixed Doctrine_Query::count()

This commit is contained in:
zYne 2007-02-08 18:26:05 +00:00
parent 8dc99daa9f
commit 4282758023

View File

@ -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