Commit 4308f6ca authored by ricardoaponte's avatar ricardoaponte

Changed compileWhereIn function

MongoDB 2.6.0, no longer accepting bson object in the $in clause. To fix this, the values need to be numerically indexed starting from zero and have consecutive values.

Adding array_values fixed this issue.

This fix was not tested on a previous MongoDB version.
parent 65b5972e
......@@ -887,7 +887,7 @@ class Builder extends QueryBuilder {
{
extract($where);
return array($column => array('$in' => $values));
return array($column => array('$in' => array_values($values)));
}
protected function compileWhereNotIn($where)
......
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