Skip to content

Commit 4ce2b8c

Browse files
committed
JS feedback
1 parent d06d1fc commit 4ce2b8c

File tree

1 file changed

+27
-10
lines changed

1 file changed

+27
-10
lines changed

docs/upgrade.txt

Lines changed: 27 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@ Upgrade ODM Version
1111
.. meta::
1212
:keywords: php framework, odm, code example
1313

14+
.. contents:: On this page
15+
:local:
16+
:backlinks: none
17+
:depth: 1
18+
:class: singlecol
19+
1420
Overview
1521
--------
1622

@@ -47,8 +53,8 @@ Breaking Changes
4753
----------------
4854

4955
A breaking change is a modification in a convention or behavior in
50-
a specific version of {+odm-short+} that may prevent your application from
51-
working as expected.
56+
a specific version of {+odm-short+} that might prevent your application
57+
from working as expected.
5258

5359
The breaking changes in this section are categorized by the major
5460
version releases that introduced them. When upgrading ODM versions,
@@ -84,8 +90,8 @@ This ODM version introduces the following breaking changes:
8490
- Removes the ``Query\Builder::whereAll($column, $values)`` method. Ensure that you replace all calls
8591
to ``Query\Builder::whereAll($column, $values)`` with ``Query\Builder::where($column, 'all', $values)``.
8692

87-
- ``Query\Builder::delete()`` can only delete one or all documents. Ensure that you only pass a value
88-
of ``1`` or ``null`` to ``limit()``.
93+
- ``Query\Builder::delete()`` can delete one or all documents. Ensure that you pass only the values
94+
``1`` or ``null`` to ``limit()``.
8995

9096
- ``whereDate()``, ``whereDay()``, ``whereMonth()``, ``whereYear()``, and ``whereTime()`` methods
9197
now use MongoDB operators on date fields.
@@ -94,9 +100,20 @@ This ODM version introduces the following breaking changes:
94100
``Illuminate\Database\Eloquent\MassPrunable`` with ``MongoDB\Laravel\Eloquent\MassPrunable``
95101
in your models.
96102

97-
- Removes support for the ``Query\Builder``: ``toSql``,
98-
``toRawSql``, ``whereColumn``, ``whereFullText``, ``groupByRaw``,
99-
``orderByRaw``, ``unionAll``, ``union``, ``having``, ``havingRaw``,
100-
``havingBetween``, ``whereIntegerInRaw``, ``orWhereIntegerInRaw``,
101-
``whereIntegerNotInRaw``, and ``orWhereIntegerNotInRaw`` methods. Ensure that you remove
102-
all calls to these methods.
103+
- Removes support for the following ``Query\Builder`` methods:
104+
105+
- ``toSql()``
106+
- ``toRawSql()``
107+
- ``whereColumn()``
108+
- ``whereFullText()``
109+
- ``groupByRaw()``
110+
- ``orderByRaw()``
111+
- ``unionAll()``
112+
- ``union()``
113+
- ``having()``
114+
- ``havingRaw()``
115+
- ``havingBetween()``
116+
- ``whereIntegerInRaw()``
117+
- ``orWhereIntegerInRaw()``
118+
- ``whereIntegerNotInRaw()``
119+
- ``orWhereIntegerNotInRaw()``

0 commit comments

Comments
 (0)