Explorar el Código

Convert query in MongoCursor explain fromLegacy

Rob Williams hace 8 años
padre
commit
1d918f995e
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      lib/Mongo/MongoCursor.php

+ 1 - 1
lib/Mongo/MongoCursor.php

@@ -195,7 +195,7 @@ class MongoCursor extends AbstractCursor implements Iterator
         $command = [
             'explain' => [
                 'find' => $this->collection->getCollectionName(),
-                'filter' => $this->query,
+                'filter' => TypeConverter::fromLegacy($this->query),
             ] + $options,
         ];