I’m trying to save a model like so:
$this->User->save(
array(
'User' => array(
'id' => $id,
'persistent_hash' => 'test',
'name' => 'test'
)
),
false
);
The model saves the name column as ‘test’, but the persistent_hash column remains unchanged. (I triple checked the column to make sure it was spelled correctly)
Turns out my config was set to debug mode 0. When CakePHP is in production mode, it caches the database schemas.
If you make changes to the structures of any tables, Cake won’t notice until you either change the debug mode or clear the schema caches.