Agile database access with CakePHP 3
summary
CakePHP 3 ships a new ORM that builds complex SQL with composable custom finders as composable queries, shows how queries act as collections (group, map, slice), and demonstrates debugging with debugQuery/debugJson and JSON export control. Examples include a subquery that computes the 44% female managers ratio, yearly/department/gender averages, and mapping PHP value objects to DB types so entity properties roundtrip and serialize predictably; code lives on GitHub.
AI-written summary · about
chapters (14)
- 0:00Introduction to talk
- 0:25Types of ORMs explained
- 3:36What makes an ORM agile
- 8:57Simple analytical queries demo
- 11:05Complex query composition
- 15:47Queries as collections
- 20:31Result formatting and grouping
- 22:43Agile query design principles
- 25:57External database associations
- 27:03Debugging queries and results
- 28:31JSON export and virtual properties
- 30:38Hypermedia links and Reacher
- 34:54Value objects in ORM
- 39:56Summary and Q&A
