We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3955807 commit 8ea021fCopy full SHA for 8ea021f
docs/upgrade.txt
@@ -120,6 +120,10 @@ This library version introduces the following breaking changes:
120
Because of this behavior, you cannot have two separate ``id`` and ``_id`` fields
121
in your documents.
122
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
+
127
- Removes support for the ``$collection`` property. The following code shows
128
how to assign a MongoDB collection to a variable in your ``User`` class in
129
older versions compared to v5.0:
0 commit comments