Skip to content

Commit

Permalink
Merge pull request #7968 from cakephp/dereuromark-patch-1
Browse files Browse the repository at this point in the history
Clarify tricky part about finder key.
  • Loading branch information
dereuromark authored Dec 2, 2024
2 parents e33a121 + bbd560f commit 3b7e992
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions en/controllers/pagination.rst
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ You can also use :ref:`custom-find-methods` in pagination by using the ``finder`
];
}

Note: This only works with Table as string input in ``$this->paginate('MyTable')``. Once you use ``$this->MyTable->find()`` as input for ``paginate()``, you must directly use that Query object instead.

If your finder method requires additional options you can pass those
as values for the finder::

Expand Down

0 comments on commit 3b7e992

Please sign in to comment.