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

fromJSON() does not handle DBRef documents

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.1.0
    • Affects Version/s: 1.0.0-beta2
    • Component/s: None
    • None

      Converting a DBRef from JSON to BSON results in an ObjectId type:

      { "dbref": { "$ref": "collection", "$id": { "$oid": "56315a7c6118fd1b920270b1" }}}
      

      Results in:

           0 : 18 00 00 00 07 64 62 72 65 66 00 56 31 5a 7c 61  [.....dbref.V1Z|a]
          10 : 18 fd 1b 92 02 70 b1 00                          [.....p..]
      

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

              Created:
              Updated:
              Resolved: