Skip to content

Commit e1ed056

Browse files
authored
DOCSP-43457: builderEncoder option (#200)
* DOCSP-43457: builderEncoder option * fix * fix type * go back * codec * JT feedback
1 parent 6cc2ea7 commit e1ed056

4 files changed

+28
-0
lines changed

source/reference/method/MongoDBClient__construct.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,13 @@ Parameters
124124
'root' => 'MongoDB\Model\BSONDocument',
125125
]
126126

127+
* - builderEncoder
128+
- MongoDB\\Codec\\Encoder
129+
- Encoder to use for query and aggregation builders. If not set, this option
130+
defaults to a new instance of the ``MongoDB\Builder\BuilderEncoder`` class.
131+
132+
.. versionadded:: 1.21
133+
127134
* - allow_invalid_hostname
128135
- boolean
129136
- Disables hostname validation if ``true``. Defaults to ``false``.

source/reference/method/MongoDBCollection-bulkWrite.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,13 @@ Parameters
6464
- Type
6565
- Description
6666

67+
* - builderEncoder
68+
- MongoDB\\Codec\\Encoder
69+
- Encoder to use for query and aggregation builders. If not set, this option
70+
defaults to a new instance of the ``MongoDB\Builder\BuilderEncoder`` class.
71+
72+
.. versionadded:: 1.21
73+
6774
* - bypassDocumentValidation
6875
- boolean
6976
- If ``true``, allows the write operation to circumvent document level

source/reference/method/MongoDBCollection__construct.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,13 @@ Definition
4848
- Type
4949
- Description
5050

51+
* - builderEncoder
52+
- MongoDB\\Codec\\Encoder
53+
- Encoder to use for query and aggregation builders. If not set, this option
54+
defaults to a new instance of the ``MongoDB\Builder\BuilderEncoder`` class.
55+
56+
.. versionadded:: 1.21
57+
5158
* - codec
5259
- MongoDB\\Codec\\DocumentCodec
5360
- The default :doc:`codec </data-formats/codecs>` to use for collection

source/reference/method/MongoDBDatabase__construct.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,13 @@ Parameters
4545
- Type
4646
- Description
4747

48+
* - builderEncoder
49+
- MongoDB\\Codec\\Encoder
50+
- Encoder to use for query and aggregation builders. If not set, this option
51+
defaults to a new instance of the ``MongoDB\Builder\BuilderEncoder`` class.
52+
53+
.. versionadded:: 1.21
54+
4855
* - readConcern
4956
- :php:`MongoDB\Driver\ReadConcern <class.mongodb-driver-readconcern>`
5057
- The default read concern to use for database operations. Defaults to

0 commit comments

Comments
 (0)