@@ -176,9 +176,9 @@ Logical OR Example
176
176
177
177
The following example shows how to chain the ``orWhere()``
178
178
query builder method to retrieve documents from the
179
- ``movies`` collection that either match the ``_id``
180
- value of ``ObjectId('573a1398f29313caabce9682')`` or match
181
- the ``title`` value ``"Back to the Future"``:
179
+ ``movies`` collection in which the value of the ``_id``
180
+ field is ``ObjectId('573a1398f29313caabce9682')`` or
181
+ the value of the ``title`` field is ``"Back to the Future"``:
182
182
183
183
.. literalinclude:: /includes/query-builder/QueryBuilderTest.php
184
184
:language: php
@@ -188,11 +188,11 @@ the ``title`` value ``"Back to the Future"``:
188
188
189
189
.. note::
190
190
191
- Beginning in {+odm-short+} v5.0, you can use the ``id`` alias to
192
- represent the ``_id`` field, as shown in the preceding code. When you
193
- run a find operation using the query builder, {+odm-short+}
194
- automatically converts between ``id`` and ``_id``. You cannot have
195
- two separate ``id`` and ``_id`` fields in your documents.
191
+ You can use the ``id`` alias in your queries to represent
192
+ the ``_id`` field in MongoDB documents , as shown in the preceding
193
+ code. When you run a find operation using the query builder, {+odm-short+}
194
+ automatically converts between ``id`` and ``_id``. Because of this behavior,
195
+ you cannot have two separate ``id`` and ``_id`` fields in your documents.
196
196
197
197
.. _laravel-query-builder-logical-and:
198
198
0 commit comments