-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: 1.0.2
-
Component/s: 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).
- is related to
-
PHPC-801 Empty ReadConcern and WriteConcern should serialize to BSON documents
- Closed
-
PHPLIB-129 findAndModify take a write concern
- Closed
-
PHPC-498 ReadPreference, ReadConcern, and WriteConcern should serialize to BSON
- Closed