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

Default BSON document and array unserialization to ArrayObject classes

    • Type: Icon: New Feature New Feature
    • Resolution: Done
    • Priority: Icon: Blocker - P1 Blocker - P1
    • 1.0.0
    • Affects Version/s: 0.1.0
    • Component/s: None
    • None

      In the interest of usability, we should use type maps to ensure that embedded documents are converted to an object implementing ArrayAccess (e.g. ArrayObject) instead of stdClass objects. This would make a fine default for users, although we should make it easy for them to specify a typeMap at the Client level and have it be inherited for Database and Collection operations.

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

              Created:
              Updated:
              Resolved: