I’m building an application that has many hasMany relationships. Ideally, this results in many master-detail forms for data entry with controllers managing the saving of data to two (or more) tables. While I basically know how to build such things, they are a repetitive pain-in-the-neck to build and are error prone. Most frameworks, like Yii2 and Laravel, have plugins to help with master-detail. Unfortunately, I’ve searched in vain trying to find such plugins for CakePHP; I haven’t even been able to find some models for such development. (Note that I’m using “model” here as as a development pattern, not a relationship. I know full well how to build hasMany relationships and the far more common belongsToMany relationships with linking tables.)
Clearly, any application of even the simplest sort, will require many, many, many such forms. It is literally impossible to think of an application that wouldn’t require many such forms. Just think of recipes with ingredients, how to’s with supplies, health logs with medications, purchase orders with items, and on and on. To have to enter the master information and save it in one form and then enter the detail on a separate form using a lookup combo box for the master is ridiculously cumbersome beyond belief.
Surely there must be a plugin for such things or, at the very least, some sort of tutorial/instructions/suggested development model that I’m missing. Can anyone give me any suggestions in this regard?