-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
None
-
Affects Version/s: 1.0.2
-
Component/s: None
-
Labels:None
-
Environment:Windows 10 64 bit
Apache
PHP 7 64 bit
Mongodb driver 1.1.8 PHP 7.0 Thread Safe (TS) x64
MongoDB 3.2.7.
e.g.
$orgDb = new MongoDB\Client("mongodb://127.0.0.1:27017"); $collection = $orgDb->selectCollection('orgDb','units'); print_r($collection->listIndexes());
Output: (In mongo shell I have 8 indexes on that collection)
MongoDB\Model\IndexInfoIteratorIterator Object ( )