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

FindAndModify writeConcern option is sent as empty document

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.0.3
    • Affects Version/s: 1.0.2
    • Component/s: None
    • Labels:
      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:
            jmikola@mongodb.com Jeremy Mikola
            Reporter:
            jmikola@mongodb.com Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: