File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
user_guide_src/source/models Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -1032,6 +1032,15 @@ afterUpdateBatch **data** = the key/value pairs being updated.
1032
1032
**result ** = the results of the ``updateBatch() `` method used through the Query Builder.
1033
1033
================= =========================================================================================================
1034
1034
1035
+ .. note :: When using the ``paginate()`` method in combination with the ``beforeFind`` event to modify the query,
1036
+ the results may not behave as expected.
1037
+
1038
+ This is because the ``beforeFind `` event only affects the actual retrieval of the results (``findAll() ``),
1039
+ but **not ** the query used to count the total number of rows for pagination.
1040
+
1041
+ As a result, the total row count used for generating pagination links may not reflect the modified query conditions,
1042
+ leading to inconsistencies in pagination.
1043
+
1035
1044
Modifying Find* Data
1036
1045
====================
1037
1046
You can’t perform that action at this time.
0 commit comments