@@ -147,11 +147,11 @@ upper-right to set the language of the following examples.
147
147
This page uses the following `MongoDB PHP Library
148
148
<https://www.mongodb.com/docs/php-library/current/>`_ methods:
149
149
150
- - :phpmethod:`MongoDB\\Collection::updateOne() <phpmethod.MongoDB\\Collection::updateOne>`
150
+ - :phpmethod:`MongoDB\\Collection::updateOne() <phpmethod.MongoDB\\Collection::updateOne() >`
151
151
152
- - :phpmethod:`MongoDB\\Collection::updateMany() <phpmethod.MongoDB\\Collection::updateMany>`
152
+ - :phpmethod:`MongoDB\\Collection::updateMany() <phpmethod.MongoDB\\Collection::updateMany() >`
153
153
154
- - :phpmethod:`MongoDB\\Collection::replaceOne() <phpmethod.MongoDB\\Collection::replaceOne>`
154
+ - :phpmethod:`MongoDB\\Collection::replaceOne() <phpmethod.MongoDB\\Collection::replaceOne() >`
155
155
156
156
|populate-inventory|
157
157
@@ -575,7 +575,7 @@ Update a Single Document
575
575
:tabid: php
576
576
577
577
The following example uses the :phpmethod:`updateOne()
578
- <phpmethod.MongoDB\\Collection::updateOne>` method on the
578
+ <phpmethod.MongoDB\\Collection::updateOne() >` method on the
579
579
``inventory`` collection to update the *first* document where
580
580
``item`` equals ``"paper"``:
581
581
@@ -697,7 +697,7 @@ Update Multiple Documents
697
697
:tabid: php
698
698
699
699
The following example uses the :phpmethod:`updateMany()
700
- <phpmethod.MongoDB\\Collection::updateMany>` method on the
700
+ <phpmethod.MongoDB\\Collection::updateMany() >` method on the
701
701
``inventory`` collection to update all documents where ``qty`` is
702
702
less than ``50``:
703
703
@@ -819,7 +819,7 @@ Replace a Document
819
819
To replace the entire content of a document except for the ``_id``
820
820
field, pass an entirely new document as the second argument to
821
821
:phpmethod:`replaceOne()
822
- <phpmethod.MongoDB\\Collection::replaceOne>`.
822
+ <phpmethod.MongoDB\\Collection::replaceOne() >`.
823
823
824
824
.. include:: /includes/fact-update-replace-example.rst
825
825
@@ -1061,11 +1061,11 @@ Upsert Option
1061
1061
:tabid: php
1062
1062
1063
1063
If :phpmethod:`updateOne()
1064
- <phpmethod.MongoDB\\Collection::updateOne>`,
1064
+ <phpmethod.MongoDB\\Collection::updateOne() >`,
1065
1065
:phpmethod:`updateMany()
1066
- <phpmethod.MongoDB\\Collection::updateMany>`, or
1066
+ <phpmethod.MongoDB\\Collection::updateMany() >`, or
1067
1067
:phpmethod:`replaceOne()
1068
- <phpmethod.MongoDB\\Collection::replaceOne>` includes ``upsert =>
1068
+ <phpmethod.MongoDB\\Collection::replaceOne() >` includes ``upsert =>
1069
1069
true`` **and** no documents match the specified filter, then the
1070
1070
operation creates a new document and inserts it. If there are
1071
1071
matching documents, then the operation modifies or replaces the
@@ -1258,11 +1258,11 @@ requested from MongoDB for write operations. For details, see
1258
1258
1259
1259
.. seealso::
1260
1260
1261
- - :phpmethod:`MongoDB\\Collection::updateOne() <phpmethod.MongoDB\\Collection::updateOne>`
1261
+ - :phpmethod:`MongoDB\\Collection::updateOne() <phpmethod.MongoDB\\Collection::updateOne() >`
1262
1262
1263
- - :phpmethod:`MongoDB\\Collection::updateMany() <phpmethod.MongoDB\\Collection::updateMany>`
1263
+ - :phpmethod:`MongoDB\\Collection::updateMany() <phpmethod.MongoDB\\Collection::updateMany() >`
1264
1264
1265
- - :phpmethod:`MongoDB\\Collection::replaceOne() <phpmethod.MongoDB\\Collection::replaceOne>`
1265
+ - :phpmethod:`MongoDB\\Collection::replaceOne() <phpmethod.MongoDB\\Collection::replaceOne() >`
1266
1266
1267
1267
- :ref:`additional-updates`
1268
1268
0 commit comments