Uploaded image for project: 'PHP Driver: Library'
  1. PHP Driver: Library
  2. PHPLIB-204

listIndexes() returns empty object

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 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
      (
      )
      

            Assignee:
            Unassigned Unassigned
            Reporter:
            jesperbendtsen83@gmail.com Jesper Erik Bendtsen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: