The CakePHP core team is proud to announce the second release candidate of CakePHP 4.1.0. This RC introduces a handful of deprecations. It also adds window function support and common-table-expression support to the ORM. Furthermore, it features improved debug()
output, and new ORM events for marshalling.
New Features
The migration guide has a complete list of what's new in 4.1.0. We recommend you give that page a read when upgrading as it outlines the deprecations present in 4.1.
Changes Since 4.1.0-RC1
Table::saveMany()
now triggers theModel.afterSaveCommit
event.- Improved deprecation links.
- Fix a regression in RC1 where associations with
dependent
but not associated records would cause deletions to fail. - Fixed inflection of CamelCase words.
- Deprecated
TableRegistry::get()
. Use theTableLocatorAwareTrait
instead. - Fix query LoggingStatement prematurely fetching records.
- The
whitelist
andsortWhitelist
options forPaginatorComponent
have been deprecated. UseallowedParameters
andsortableFields
instead. - Fixed incorrect paths in missing layout exception pages.
CsrfProtectionMiddleware::whitelistCallback()
has been deprecated. UseskipCheckCallback()
instead.- Add support for console colors in Windows 10 and bash emulation.
How you Can Help
You can help by trying out the RC in your application. Please open issues for any new test failures or regressions the new version creates in your application.
Contributors to 4.1.0-RC2
Thank you to all the contributors that have helped with 4.1.0:
- ADmad
- Corey Taylor
- Mark Scherer
- Mark Story
- Walther Lalk
- ndm2
As always, a huge thanks to all the community members that helped make this release happen by reporting issues and sending pull requests.