I need to get my User
info and when I call
$this->User->find('first', array('conditions' => array('User.id' => $user_id)));
the result contains just some of the fields.
I've currently updated database schema. On dev server it runs fine and returns all fields but on the production server those new fields are missing. Those servers have exactly the same configuration.
I've already tried to remove contents of app/tmp/cache/models
and I am using File
engine for caching.
The schema.php
file is up to date, the contents of files in app/tmp/cache/models
indicate that those fields are present but I have not been able to retreive them on the production server. The only difference perhaps is database and debug level. I've tried copying the database and using it with the dev server and that worked well.
I cannot obviously set debug to 2 on the production server.
Did anyone of you experience any sort of similar behavior?
PS I am using Cake 2.3.3