I am new to cake PHP. I was working on existing website on cakePHP. Due to some requirements of client I had to add a new column in one of the table in database. I can make entry to all of the field except the one which I recently created. I guess the problem is because that was not present during scaffolding. But I am not aware how to solve this issue.
I am able to access that field while fetching from database by simply adding array('fields'=>'*') in $this->Model_name->find('first',array('fields'=>'*')).
I tried this for making new insert $this->request->data['ModelName']['field_name'] = 'value';
before using save function. But the problem is all the fields gets insert except for this new field that I added.
I hope the thing is clear.
in your case remind me about 2 of my mistake that make I cannot save my new field.
1 make sure you have new field in your database table.
2 in my productin system I was set debug to 0 so model and persisten cache doesn’t update.
To clear model and persistent cache you can set
Configure::write('debug', 2);inapp/Config/Core.phpor manual delete cache in command line.