1
0
mirror of synced 2024-12-13 22:56:04 +03:00

FIX: Doctrine_Query::count() prevented execute() calls on the same query object

This commit is contained in:
gyim 2007-04-19 14:16:04 +00:00
parent 32b564e742
commit 44101abceb

View File

@ -376,6 +376,8 @@ class Doctrine_Query extends Doctrine_Hydrate implements Countable {
*/
public function count($params = array())
{
$parts_old = $this->parts;
$this->remove('select');
$join = $this->join;
$where = $this->where;
@ -408,6 +410,7 @@ class Doctrine_Query extends Doctrine_Hydrate implements Countable {
$params = array_merge($this->params, $params);
$this->parts = $parts_old;
return (int) $this->getConnection()->fetchOne($q, $params);
}
/**