Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Bake every table in CakePHP?

The database I'm working on has more than 100 tables, so I'm not going to sit here baking a model and controller for each one individually. I would like to bake all of the tables at the same time with something like the .xml files in Hibernate that tells it the limitations on fields so that I don't have to go through every column on every table, and automatically select the relationships. Is this possible?

like image 414
NobleUplift Avatar asked Sep 19 '13 15:09

NobleUplift


1 Answers

To bake all of you models, use cake bake model all.

Controllers would be cake bake controller all

For Reference

like image 187
Bill Rollins Avatar answered Oct 04 '22 21:10

Bill Rollins