Commit 3d4bcd40 authored by zYne's avatar zYne

--no commit message

--no commit message
parent b9be106f
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment