Skip to content

Commit 3eedb83

Browse files
committed
docs: add about impact on Model
1 parent 5a43d09 commit 3eedb83

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

user_guide_src/source/changelogs/v4.5.0.rst

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,8 @@ limit(0) Behavior
251251
generated SQL statement will have no ``LIMIT`` clause and all records will be
252252
returned.
253253
- It is recommended that ``$limitZeroAsAll`` in **app/Config/Feature.php** be set
254-
to ``false`` as this incorrect behavior will be fixed in a future version.
254+
to ``false`` as this incorrect behavior will be fixed in a future version. See
255+
also :ref:`v450-model-findall-limit-0-behavior`.
255256

256257
Forge
257258
-----
@@ -262,6 +263,17 @@ Others
262263
Model
263264
=====
264265

266+
.. _v450-model-findall-limit-0-behavior:
267+
268+
findAll(0) Behavior
269+
-------------------
270+
271+
- Added a feature flag ``Feature::$limitZeroAsAll`` to fix the incorrect behavior
272+
of ``limit(0)`` for Query Builder. See :ref:`v450-query-builder-limit-0-behavior`
273+
for details.
274+
- If you enable this flag, you need to change code like ``findAll(0, $offset)``
275+
to ``findAll(null, $offset)``.
276+
265277
Libraries
266278
=========
267279

0 commit comments

Comments
 (0)