Doctrine ORM Good Practices and Tricks
summary
Doctrine ORM is presented as a powerful but complex tool for building professional PHP applications; the talk examines whether common usage is optimal and how to use Doctrine more efficiently. It compares pros and cons of different design approaches for applications using Doctrine and extracts a set of best practices and practical tricks to apply in projects.
AI-written summary · about
chapters (18)
- 0:00Introduction
- 3:28When to use ORM
- 8:08Entity design
- 15:54Avoid state jumps
- 21:40Form handling
- 26:17Events and serialization
- 27:43Primary keys
- 30:55Using UUIDs
- 33:03Denormalization
- 35:11Soft deletes
- 37:44Mapping strategies
- 39:08Lazy loading
- 40:31Bidirectional associations
- 41:56Custom repositories
- 44:45Transactions
- 46:09Normalization vs practice
- 49:46Performance tips
- 50:50Recap
