File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -1068,10 +1068,10 @@ the ``imdb.votes`` field in the matched document:
1068
1068
The ``increment()`` query builder method returns the number of documents that the
1069
1069
operation updated.
1070
1070
1071
- You can also use the ``incrementEach()`` query builder method to increment multiple
1072
- values in a single operation. The following example uses the ``incrementEach()``
1073
- method to increase the values of the ``awards.wins`` and ``imdb.votes`` fields in the
1074
- matched document:
1071
+ Starting in {+odm-short+} v4.8, you can also use the ``incrementEach()`` query
1072
+ builder method to increment multiple values in a single operation. The following
1073
+ example uses the ``incrementEach()`` method to increase the values of the ``awards.wins``
1074
+ and ``imdb.votes`` fields in the matched document:
1075
1075
1076
1076
.. literalinclude:: /includes/query-builder/QueryBuilderTest.php
1077
1077
:language: php
@@ -1103,10 +1103,10 @@ matched document:
1103
1103
The ``decrement()`` query builder method returns the number of documents that the
1104
1104
operation updated.
1105
1105
1106
- You can also use the ``decrementEach()`` query builder method to decrement multiple
1107
- values in a single operation. The following example uses the ``decrementEach()``
1108
- method to decrease the values of the ``metacritic`` and ``imdb.rating`` fields in the
1109
- matched document:
1106
+ Starting in {+odm-short+} v4.8, you can also use the ``decrementEach()`` query builder
1107
+ method to decrement multiple values in a single operation. The following example uses
1108
+ the ``decrementEach()`` method to decrease the values of the ``metacritic`` and ``imdb.rating``
1109
+ fields in the matched document:
1110
1110
1111
1111
.. literalinclude:: /includes/query-builder/QueryBuilderTest.php
1112
1112
:language: php
You can’t perform that action at this time.
0 commit comments