~/talk

Doctrine 2: To Use or Not to Use

Talkat SymfonyCon Paris 2015 · 2015-12-03..12-05· [databases, php]
slides:none on file

Doctrine delivers the easy 80%: CRUD, associations, DQL and lazy loading, but hits limits on inheritance, events, batch imports and complex read models. Expect hydration to dominate cost (SQL 5–10ms, PHP hydration 100–200ms) and flushes to slow dramatically as the UnitOfWork grows beyond ~100 entities per UnitOfWork. Workarounds include modeling changes or view models instead of entities, using getConnection raw SQL or the DB query builder, storing JSON/custom types for flexible fields, and preferring explicit domain events over generic listeners.

AI-written summary · about

  1. 0:00Introduction to Doctrine debate
  2. 3:26ORM limitations and expectations
  3. 10:18When to use Doctrine effectively
  4. 17:19Advanced features and risks
  5. 19:47Inheritance mapping pitfalls
  6. 24:49Events and performance issues
  7. 27:39Batch processing challenges
  8. 31:11DQL fetch joins and pagination
  9. 35:50Raw SQL alternatives
  10. 39:46Domain-driven design with Doctrine
  11. 40:59Future of Doctrine
  12. 43:05Q&A on multi-master connections
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.