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

Top level documents should be deserialized as stdClass by default

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Blocker - P1 Blocker - P1
    • 1.0.0-alpha1
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      Hey - as discussed at the 2015-06-15 meeting:

      There was inconsistency issue with Hippo vs. Phongo regarding what type (stdClass or array) should be the top level type. We decided to made it consistent as what we already did for embedded documents, and make every document come back as a stdClass object. Type map should be changed to return top-level documents as stdClass.

            Assignee:
            jmikola@mongodb.com Jeremy Mikola
            Reporter:
            derick Derick Rethans
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: