Uploaded image for project: 'PHP Driver: Extension'
  1. PHP Driver: Extension
  2. PHPC-157

Consolidate CommandResult and QueryResult classes

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 0.1.5
    • Affects Version/s: 0.1.4
    • Component/s: None
    • None

      • CommandResult will now get a setTypemap() method
      • CommandResult::getResponseDocument() now becomes common to the Result class and is renamed to toArray(). Document this as pure syntactic sugar for iterator_to_array($this). For commands, this means the singular result document is now the lone element in a numeric array (where it was previously returned unwrapped).

            Assignee:
            bjori Hannes Magnusson
            Reporter:
            jmikola@mongodb.com Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: