1
0
mirror of synced 2025-02-20 14:13:15 +03:00
This commit is contained in:
zYne 2007-05-24 13:58:36 +00:00
parent b9be106fc5
commit 3d4bcd4099

View File

@ -227,7 +227,12 @@ abstract class Doctrine_Query_Abstract extends Doctrine_Hydrate
*/
public function where($where, $params = array())
{
$this->params = (array) $params;
$this->params = array();
if (is_array($params)) {
$this->params = $params;
} else {
$this->params[] = $params;
}
return $this->parseQueryPart('where', $where);
}
@ -241,7 +246,12 @@ abstract class Doctrine_Query_Abstract extends Doctrine_Hydrate
*/
public function having($having, $params = array())
{
$this->params = (array) $params;
$this->params = array();
if (is_array($params)) {
$this->params = $params;
} else {
$this->params[] = $params;
}
return $this->parseQueryPart('having', $having);
}