Skip to content

Document CakePHP 5.4 features#8254

Merged
ADmad merged 3 commits into5.nextfrom
docs-5.4-features
Mar 26, 2026
Merged

Document CakePHP 5.4 features#8254
ADmad merged 3 commits into5.nextfrom
docs-5.4-features

Conversation

@dereuromark
Copy link
Member

Summary

Documents new features from CakePHP core 5.next that will be part of 5.4:

Migration Guide (5-4-migration-guide.md)

  • Complete new features section with examples for all items below

Controller Features

  • RequestToDto attribute: New #[RequestToDto] parameter attribute for automatic mapping of request data to DTOs
  • FormProtection convenience methods: unlockActions() and unlockFields() methods

Database/Query Builder

  • notBetween() for NOT BETWEEN expressions
  • inOrNull() for (field IN (...) OR field IS NULL) patterns
  • notInOrNull() for (field NOT IN (...) OR field IS NULL) patterns
  • isDistinctFrom() and isNotDistinctFrom() for null-safe comparisons

ORM

  • Nested array format for associated option in marshalling (same format as contain())

View

  • {{inputId}} template variable for inputContainer and error templates

Files Changed

  • docs/en/appendices/5-4-migration-guide.md
  • docs/en/controllers/components/form-protection.md
  • docs/en/development/dependency-injection.md
  • docs/en/orm/query-builder.md
  • docs/en/orm/saving-data.md
  • docs/en/views/helpers/form.md

- 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
@dereuromark dereuromark requested a review from josbeir March 26, 2026 03:42
@ADmad ADmad merged commit 5a61c1f into 5.next Mar 26, 2026
5 checks passed
@ADmad ADmad deleted the docs-5.4-features branch March 26, 2026 07:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants