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

Allow ->setTypeMap() to set 'array' and 'stdclass'

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 0.5.0
    • Affects Version/s: 0.4.1
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Currently you can only use object instanceof BSON\Unserializable.

      We need to be able to set to standard 'array's too, so we can get bson documents as PHP arrays.

      And we need to allow passing 'stdclass' as that is the default value for bson documents.

            Assignee:
            bjori Hannes Magnusson (Inactive)
            Reporter:
            bjori Hannes Magnusson (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              None
              None
              None
              None