Skip to content

Commit 8ea021f

Browse files
committed
DOCSP-43615: raw() ID conversion
1 parent 3955807 commit 8ea021f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/upgrade.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,10 @@ This library version introduces the following breaking changes:
120120
Because of this behavior, you cannot have two separate ``id`` and ``_id`` fields
121121
in your documents.
122122

123+
In v5.1, {+odm-short+} also performs this conversion if you use the ``Model::raw()``
124+
method to hydrate a Model instance. When passing a complex query filter, use the
125+
``DB::where()`` method instead of ``Model::raw()``.
126+
123127
- Removes support for the ``$collection`` property. The following code shows
124128
how to assign a MongoDB collection to a variable in your ``User`` class in
125129
older versions compared to v5.0:

0 commit comments

Comments
 (0)