Generation Gap Pattern on CakePHP4
summary
Describes a concrete Generation Gap implementation for CakePHP4 that writes auto-generated model classes into a baked/ superclass directory while keeping custom code in inherited classes so database-driven schema changes only overwrite generated code. Provides a composer-installable plugin that recreates Cake bake output this way, reports testing against Cake bake v2.8.81 where the built-in update flag is unreliable, and shows the pattern preserves implementations while updating only generated superclasses.
AI-written summary · about
chapters (16)
- 0:00Start
- 0:18Speaker Biography
- 1:43Service Map
- 3:02Lancers Servers (2019)
- 3:37Separate repository and rebuild with CakePHP4
- 3:55Migration to containers (2022-)
- 4:22UpGrade Progress (admin, batch)
- 5:18Examples of automatic source code generation tools
- 5:43What is Generation Gap Pattern?
- 6:42Model generated by executing bake
- 7:24Additional implementation in the generated model
- 9:42Interleave superclass for auto-generation
- 10:38Additional implementation in inherited classes
- 12:12Plugin for Generation Gap Pattern on CakePHP4
- 12:30Diff of default and plugin behavior
- 13:20New bake updates only table structure!
related talks
01h 07mHow to work with CakePHP frictionless and make coding quick, easy and fun
38mCakePHP Test Fixture Factories
02h 31mWorkshop 1
59mSave Time with Custom Rails Generators
38mHow to use your IDE effectivly for CakePHP
51mGenerate You Some Code for Great Good
48mCode Generation in 2024: How AI Will Take Your Job…to the Next Level!
24mNX Generators or how to skip boring tasks
