~/talk

Laravel Doctrine: A Data Mapper Approach

TalkinItalianat LaravelDay 2017 · 2017-11-30..12-01· [php, laravel, databases]
slides:none on file

The talk compares Eloquent’s Active Record limits to Doctrine’s Data Mapper for Laravel, showing how to integrate Doctrine via composer and the laravel-doctrine bridge (auto-registered in Laravel 5.5). It emphasizes constructor-enforced invariants for valid entities, proxy-based lazy loading, EntityManager batching that collapses many operations into a single DB hit at flush, and repository use to hide SQL, with demonstrations of install steps, metadata-based schema create/update, migrations, and Doctrine’s wide adoption (28.5M downloads).

AI-written summary · about

  1. 0:00Start
  2. 3:37Active Record Pattern
  3. 5:22Eloquent vs Doctrine
  4. 7:42Laravel Doctrine
  5. 8:04Laravel + Doctrine: Setup
  6. 14:32Schema generation
  7. 15:07Doctrine Entity Manager
  8. 16:15Doctrine Entity Repository: Generic
  9. 17:30Doctrine Entity Repository: Inheritance
  10. 17:55Doctrine Entity Repository: Composition
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 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
?
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.