Commit 267b9a14 authored by duxet's avatar duxet

Fix #325

parent b3bdd0df
......@@ -715,16 +715,20 @@ class Builder extends QueryBuilder {
*/
public function where($column, $operator = null, $value = null, $boolean = 'and')
{
$params = func_get_args();
// Remove the leading $ from operators.
if (func_num_args() == 3)
{
$operator = &$params[1];
if (starts_with($operator, '$'))
{
$operator = substr($operator, 1);
}
}
return parent::where($column, $operator, $value, $boolean);
return call_user_func_array('parent::where', $params);
}
/**
......
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