@@ -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
@@ -691,7 +691,7 @@ Update Multiple Documents
691
691
:tabid: php
692
692
693
693
The following example uses the :phpmethod:`updateMany()
694
- <phpmethod.MongoDB\\Collection::updateMany>` method on the
694
+ <phpmethod.MongoDB\\Collection::updateMany() >` method on the
695
695
``inventory`` collection to update all documents where ``qty`` is
696
696
less than ``50``:
697
697
@@ -813,7 +813,7 @@ Replace a Document
813
813
To replace the entire content of a document except for the ``_id``
814
814
field, pass an entirely new document as the second argument to
815
815
:phpmethod:`replaceOne()
816
- <phpmethod.MongoDB\\Collection::replaceOne>`.
816
+ <phpmethod.MongoDB\\Collection::replaceOne() >`.
817
817
818
818
.. include:: /includes/fact-update-replace-example.rst
819
819
@@ -1055,11 +1055,11 @@ Upsert Option
1055
1055
:tabid: php
1056
1056
1057
1057
If :phpmethod:`updateOne()
1058
- <phpmethod.MongoDB\\Collection::updateOne>`,
1058
+ <phpmethod.MongoDB\\Collection::updateOne() >`,
1059
1059
:phpmethod:`updateMany()
1060
- <phpmethod.MongoDB\\Collection::updateMany>`, or
1060
+ <phpmethod.MongoDB\\Collection::updateMany() >`, or
1061
1061
:phpmethod:`replaceOne()
1062
- <phpmethod.MongoDB\\Collection::replaceOne>` includes ``upsert =>
1062
+ <phpmethod.MongoDB\\Collection::replaceOne() >` includes ``upsert =>
1063
1063
true`` **and** no documents match the specified filter, then the
1064
1064
operation creates a new document and inserts it. If there are
1065
1065
matching documents, then the operation modifies or replaces the
@@ -1252,11 +1252,11 @@ requested from MongoDB for write operations. For details, see
1252
1252
1253
1253
.. seealso::
1254
1254
1255
- - :phpmethod:`MongoDB\\Collection::updateOne() <phpmethod.MongoDB\\Collection::updateOne>`
1255
+ - :phpmethod:`MongoDB\\Collection::updateOne() <phpmethod.MongoDB\\Collection::updateOne() >`
1256
1256
1257
- - :phpmethod:`MongoDB\\Collection::updateMany() <phpmethod.MongoDB\\Collection::updateMany>`
1257
+ - :phpmethod:`MongoDB\\Collection::updateMany() <phpmethod.MongoDB\\Collection::updateMany() >`
1258
1258
1259
- - :phpmethod:`MongoDB\\Collection::replaceOne() <phpmethod.MongoDB\\Collection::replaceOne>`
1259
+ - :phpmethod:`MongoDB\\Collection::replaceOne() <phpmethod.MongoDB\\Collection::replaceOne() >`
1260
1260
1261
1261
- :ref:`additional-updates`
1262
1262
0 commit comments