Conversation
- Migration guide: RequestToDto, FormProtection convenience methods,
new query expression methods, nested array marshalling, inputId
template variable
- Query builder: notBetween(), inOrNull(), notInOrNull(),
isDistinctFrom(), isNotDistinctFrom()
- FormProtection: unlockActions() and unlockFields() methods
- Dependency injection: Request to DTO mapping with #[RequestToDto]
- ORM saving: nested array format for associated marshalling
- FormHelper: {{inputId}} template variable
Arhell
approved these changes
Mar 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Documents new features from CakePHP core 5.next that will be part of 5.4:
Migration Guide (5-4-migration-guide.md)
Controller Features
#[RequestToDto]parameter attribute for automatic mapping of request data to DTOsunlockActions()andunlockFields()methodsDatabase/Query Builder
notBetween()forNOT BETWEENexpressionsinOrNull()for(field IN (...) OR field IS NULL)patternsnotInOrNull()for(field NOT IN (...) OR field IS NULL)patternsisDistinctFrom()andisNotDistinctFrom()for null-safe comparisonsORM
associatedoption in marshalling (same format ascontain())View
{{inputId}}template variable forinputContaineranderrortemplatesFiles Changed
docs/en/appendices/5-4-migration-guide.mddocs/en/controllers/components/form-protection.mddocs/en/development/dependency-injection.mddocs/en/orm/query-builder.mddocs/en/orm/saving-data.mddocs/en/views/helpers/form.md