A simple query like this:
$a = array('_id' => array( '$in' => array_values($ids) ) );
var_dump($a);
$cursor2 = $data->find( $a );
works in mongodb 2.4.9, however, in 2.6.0-rc2 returns this:
Type: MongoCursorException
Code: 17287
Message: Can't canonicalize query: BadValue $in needs an array
The output from var_dump:
array(1) {
["_id"]=>
array(1) {
["$in"]=>
array(10) {
[0]=>
object(MongoId)#57 (1) {
["$id"]=>
string(24) "52214d60012f8aab278eacb6"
}
[1]=>
object(MongoId)#58 (1) {
["$id"]=>
string(24) "52214d60012f8aab278eaca8"
}
[2]=>
object(MongoId)#59 (1) {
["$id"]=>
string(24) "52214d60012f8aab278eaca7"
}
}
}
}
I wonder if this is a Mongo or PHP related?
THanks!