cakephp new field not saving

Whenever you make any changes to your database, please make sure that your app/config/core.php file debug value is 2. Configure::write('debug', 2);

If it is 0 database changes will not be detected.


Whenever you do any database change follow the following steps :

  1. Clear files under \app\tmp\cache\models
  2. If you are using any cache engines like memcache, restart the cache service.
  3. Set the debug to 2 in core.php

In CakePHP application, whenever you add a new field or modify the structure in database, you should delete all files inside YourApplication/app/tmp/cache/models folder.

Tags:

Cakephp