1
0
mirror of synced 2024-12-14 15:16:04 +03:00

fixes for #218 and #219

This commit is contained in:
chtito 2006-11-06 07:10:06 +00:00
parent 1727a3e9c1
commit d466830722

View File

@ -218,6 +218,8 @@ class Doctrine_Query extends Doctrine_Hydrate implements Countable {
if( ! empty($having))
$q .= ' HAVING ' . implode(' AND ',$having);
$params = array_merge($this->params, $params);
$a = $this->getConnection()->execute($q, $params)->fetch(PDO::FETCH_NUM);
return $a[0];
}
@ -347,6 +349,8 @@ class Doctrine_Query extends Doctrine_Hydrate implements Countable {
$parser->parse($args[0]);
break;
case 'where':
call_user_func_array(array($this, 'addWhere'), $args);
break;
case 'having':
case 'orderby':
case 'groupby':