CakePHP Missing Database Table Error
I am baking a new project management application at work and added a couple new tables to the database today. When I went into the console to bake the new models, they were not in the list…
php /path/cake/console/cake.php bake all -app /path/app/
So I manually typed in the model name and I got a missing database table for model error. I checked and double-checked and the database table was named properly. Turns out that some files inside the /app/tmp/cache/ folder were causing Cake not to recognize that I had added new tables to my database. Once I deleted the cache files cake instantly recognized my new database tables and I was baking away!
rm -Rf /path/app/tmp/cache/cake*
You’re currently reading “ CakePHP Missing Database Table Error ,” an entry on BRADINO
- Published:
- 7.24.09 / 9pm
- Category:
- PHP























That’s why it’s best to disable the cache when you’re still developing the website in CakePHP. I know I edit app/config/core.php as soon as I start a new CakePHP project.
Really helpful for me. Thanks for sharing.
i’ have the same problem. I have fixed the following:
1. core.php : disable cache
2. app/tmp/cache/ : delete all files here
3. app/models/ : checked all permission to 755
4. app/models/ : re-upload file to fix some files corruption during upload.
Pls help! :(
tnx