php - CakePHP error query with integer -


i state new cakephp, moved site made cakephp on new server, using postgres database (version 8.4 on old server, new server 9.4), problem new server can not logging in plugin auth.

this code, can not understand why:

if(isset($this->data) && !isset($this->data['user']['username_owner'])  && isset($this->data['user']['guest_access_key'])) {      $dbuser = $this->user->find('all', array(         'conditions' => array(             'user.guest_access_key' => $this->data['user']['guest_access_key'],             'user.valid_to >=' => date("d-m-y"),             'user.active'=> 1,             'user.list_type_id' => 1          )     )); //ecc.. 

if go debug, find in query changes me last state

'user.list_type_id'=>1 

the query shown thus:

user.list_type_id = '\x31' 

why?


Comments

Popular posts from this blog

Fail to load namespace Spring Security http://www.springframework.org/security/tags -

c++ - Clock_gettime() function outputting incorrect time -

asp.net core mvc - How important is the global.json and src folder? -