FindAndModify writeConcern option is sent as empty document

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • 1.0.3
    • Affects Version/s: 1.0.2
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The implementation for PHPLIB-129 sets a MongoDB\Driver\WriteConcern as a field in the findAndModify command document. The object is serialized as an empty BSON document since it does not implement a get_properties handler, nor does it have a bsonSerialize() method (before PHPC-498).

      Contrast this with PHPLIB-130, which uses a helper method to convert a MongoDB\Driver\ReadConcern to a PHP object before setting it within a command document.

      As an aside, this bug exposed an issue with the implementation for PHPC-498 (tracking in PHPC-801).

              Assignee:
              Jeremy Mikola
              Reporter:
              Jeremy Mikola
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: