CakePHP v4.0.2 Release Notes

Release Date: 2020-01-12 // over 4 years ago
  • πŸš€ The CakePHP core team is happy to announce the immediate availability of CakePHP 4.0.2. This is a maintenance release for the 4.0 branch that fixes several community reported issues.

    πŸ›  Bugfixes

    πŸ‘€ You can expect the following changes in 4.0.2. See the changelog for every commit.

    • πŸ‘» An exception is now raised in development mode if the generated alias name for a table + column would exceed the maximum identifier length for your database platform.
    • FormProtectionComponent now checks unlockedFields correctly.
    • 🚚 The deprecation warning in RequestHandlerComponent for parsing request bodies was removed. Conditionally triggering it had too many edge cases and was confusing users.
    • πŸ‘Œ Improved formatting of API documentation examples.
    • 🐎 The ORM more efficiently traverses and transforms query objects improving performance for all ORM operations.
    • Associations that use formatResults and change the associated entities no longer result in records being marked as dirty when records are read.
    • 🌲 Cache and Log now handle numeric engine names correctly.
    • ⚠ Errors and warnings emitted while DebugKit is active now reference the correct file and line.
    • πŸ“¦ Dependencies on abandoned zendframework packages are now referencing the Laminas project.
    • Using contain() with a field list on a BelongsToMany association now works correctly.
    • πŸ‘ Session cookies now have SameSite=Lax instead of strict to better emulate how session cookies worked in the past.
    • View element caching now works when elements are in subdirectories.
    • PaginatorHelper::first() and last() now apply the url option when the title parameter is a string.

    Contributors to 4.0.2

    πŸš€ Thank you to all the contributors that helped make this release happen:

    • ADmad
    • Corey Taylor
    • Edgaras JanuΕ‘auskas
    • Mark Scherer
    • Mark Story
    • gregs
    • o0h
    • othercorey
    • saeideng

    πŸ“š As always, we would like to thank all the contributors that opened issues, created pull requests or updated the documentation.