But I cannot get correct result.
So I read source code and, I think default condition should be treated with _parse_where_array() instead of where() in Query class.
or
Orm\Query::where() should use _parse_where_array() if the first argument is array
public function where()
{
$condition = func_get_args();
if (is_array(reset($condition)))
{
return $this->_parse_where_array(reset($condition));
}
return $this->_where($condition);
}
I would like to create something below
But I cannot get correct result. So I read source code and, I think default condition should be treated with _parse_where_array() instead of where() in Query class.
or Orm\Query::where() should use _parse_where_array() if the first argument is array
thanks.