@@ -11,6 +11,12 @@ Upgrade ODM Version
11
11
.. meta::
12
12
:keywords: php framework, odm, code example
13
13
14
+ .. contents:: On this page
15
+ :local:
16
+ :backlinks: none
17
+ :depth: 1
18
+ :class: singlecol
19
+
14
20
Overview
15
21
--------
16
22
@@ -47,8 +53,8 @@ Breaking Changes
47
53
----------------
48
54
49
55
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.
52
58
53
59
The breaking changes in this section are categorized by the major
54
60
version releases that introduced them. When upgrading ODM versions,
@@ -84,8 +90,8 @@ This ODM version introduces the following breaking changes:
84
90
- Removes the ``Query\Builder::whereAll($column, $values)`` method. Ensure that you replace all calls
85
91
to ``Query\Builder::whereAll($column, $values)`` with ``Query\Builder::where($column, 'all', $values)``.
86
92
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()``.
89
95
90
96
- ``whereDate()``, ``whereDay()``, ``whereMonth()``, ``whereYear()``, and ``whereTime()`` methods
91
97
now use MongoDB operators on date fields.
@@ -94,9 +100,20 @@ This ODM version introduces the following breaking changes:
94
100
``Illuminate\Database\Eloquent\MassPrunable`` with ``MongoDB\Laravel\Eloquent\MassPrunable``
95
101
in your models.
96
102
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