Skip to content

Commit 5b3c74e

Browse files
committed
Expand pagination notes
1 parent 77d9d28 commit 5b3c74e

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

2025/11/08/cakephp_530RC1.rst

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,14 @@ correctness and new features. The highlights of those include:
2323
validation to the fields listed in the ``fields`` option.
2424
- Added ``TableContainer`` that you can register in your Application::services() to
2525
add dependency injection for your Tables.
26-
- Added ``SortableFieldsBuilder`` class enabling fluent configuration of
27-
sortable fields with advanced features. The ``sortableFields`` option now
28-
accepts a callable that receives a ``SortableFieldsBuilder`` instance,
29-
allowing you to map friendly sort keys to database fields with multi-column
30-
sorting and direction control.
26+
- Added a new fluent interface and value objects for defining sortable fields.
27+
The ``sortableFields`` option now of ``Paginator`` now accepts a callable that
28+
receives a ``SortableFieldsBuilder`` instance, allowing you to map friendly
29+
sort keys to database fields with multi-column sorting and direction control.
30+
- Added ``SortField`` class for defining sort field configurations with
31+
customizable default directions and locked directions, (e.g.
32+
``SortField::desc('created', locked: true)``).
33+
- Added support for combined sorting keys in URLs (e.g., ``?sort=title-asc``)
3134
- ``assertRedirectBack()`` and ``assertRedirectBackToReferer()`` were added to
3235
improve ergonomics of asserting redirects.
3336
- ``HtmlHelper::scriptStart()`` and ``scriptEnd()`` now allow simple

0 commit comments

Comments
 (0)