CakePHP v4.1.0-RC1 Release Notes
Release Date: 2020-06-01 // almost 4 years ago-
π The CakePHP core team is proud to announce the first release candidate of CakePHP 4.1.0. This beta 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-beta1
- β‘οΈ
Form\Form::set()
was added to help incrementally update the data in a Form object. - The interface for CommonTableExpressions and windowing functions were improved.
- π
TranslateBehavior
now supports alocale
option when finding records. This option lets you set the locale for a single find call. Query::clearResult()
was added to clear the internal result and count value.- π Deprecation annotations now contain IDE clickable links.
- β Added missing annotations in the Validation package.
- Datetime inputs created through
FormHelper
can have thestep
option unset. - Cache adapters that require extensions now raise clearer exceptions when the required extensions are missing.
Datasource\LocatorInterface
was added to help easy other locator implementations.- π
SmtpAdapter
now supportsAUTH PLAIN
. - π PHP8 nightly builds were added to the CakePHP test matrix.
- β Delete operations with cascading callbacks now abort when an associated record fails to delete because of application rule failures.
- π
Query::orderAsc()
andQuery::orderDesc()
now support closures to build the order clause. - 0οΈβ£
Session::read()
now has a default parameter. Session::readOrFail()
was added.
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-RC1
Thank you to all the contributors that have helped with 4.1.0:
- ADmad
- Corey Taylor
- Edgaras JanuΕ‘auskas
- Frank de Graaf
- Mark Scherer
- Mark Story
- Matthias Wirtz
- andrii-pukhalevych
- ndm2
- othercorey
π As always, a huge thanks to all the community members that helped make this release happen by reporting issues and sending pull requests.
- β‘οΈ