Forms in Symfony 3
summary
Symfony 3 Form component applied inside a DDD app: a three-layer CRM example (domain, application, infrastructure) with three hands‑on assignments in a 3‑hour workshop. Shows CRUD for Organization using empty_data to instantiate aggregates with nonstandard constructors, explains FormBuilder vs immutable Form instance and handleRequest method, implements DataTransformer for PhoneNumber/Email (including TransformationFailedException and custom invalid messages), resolves block prefix collisions by overriding getBlockPrefix, and uses DataMapper for multi-field Address and ProposedContact command to build commands instead of persisting entities directly.
AI-written summary · about
chapters (8)
- 0:00Welcome and setup
- 3:45CRM application overview
- 7:27First assignment CRUD forms
- 15:06Solution to first assignment
- 24:13Second assignment value objects
- 37:03Third assignment data mappers
- 40:26Solution to third assignment
- 44:32Fourth assignment commands








