Using Symfony Forms
summary
A new bundle implements form-level hooks so Symfony forms map directly to rich domain objects without DTOs or custom data mappers, adding options like read property path, write property path and expected exception to route reads, writes and exceptions into form errors. It supports factories for mandatory constructor args and an immutable option to recreate value objects on submit. Code is public on GitHub, experimental and not yet used in production.
AI-written summary · about
chapters (8)
- 0:00Introduction
- 3:42Standard Symfony form approach
- 10:59Rich vs anemic domain models
- 18:49Data transfer objects solution
- 24:17Custom data mapper approach
- 31:32Rich Model Forms Bundle
- 40:05Bundle features and future
- 41:30Q&A and feedback
related talks
44mSymfony Forms with Rich Domain Model
02h 09mSymfony Forms in Detail
49mForms in Symfony 3
17mSymfony Without Bundles
34mGetting the most out of Symfony4
28mA dive into Symfony4 for a Symfony user
39mBuilding RESTful APIs with Symfony Components
02h 10mLet's play a game: No extends. Advanced OOP with Symfony 3
