Skip to content

Commit 267b9a1

Browse files
committed
Fix #325
1 parent b3bdd0d commit 267b9a1

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Jenssegers/Mongodb/Query/Builder.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -715,16 +715,20 @@ public function convertKey($id)
715715
*/
716716
public function where($column, $operator = null, $value = null, $boolean = 'and')
717717
{
718+
$params = func_get_args();
719+
718720
// Remove the leading $ from operators.
719721
if (func_num_args() == 3)
720722
{
723+
$operator = &$params[1];
724+
721725
if (starts_with($operator, '$'))
722726
{
723727
$operator = substr($operator, 1);
724728
}
725729
}
726730

727-
return parent::where($column, $operator, $value, $boolean);
731+
return call_user_func_array('parent::where', $params);
728732
}
729733

730734
/**

0 commit comments

Comments
 (0)