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

Implement BSON serialization for classes

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

      When BSON encoding a class that implements the interface outlined in PHP-1069, the class name should be injected into the document in a reserved field (e.g. _phpClass). When decoding a BSON document, we should check for this field and convert the document to a class instance instead of a PHP array or stdClass instance.

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

              Created:
              Updated:
              Resolved: