hi,
yesterday I download the latest version of CakePHP (1.2.0.5875 pre-
beta) and since then my code is broken. The problem is with the
SaveField. I am using othAuth authentication and has this piece of
code to update last_visit field

if(isset($this->user_table_last_visit)){
          $UserModel->id = $row[$this->user_model]['id'];
          $res = $UserModel->saveField($this->user_table_last_visit,
date('Y-m-d H:i:s'));
}

but the SQL code that is generated is as shown below...

UPDATE `users` SET `group_id` = '0',`active` = 0,`lat` = '0',`lng` =
'0',`articles` = '0',`keywords` = '0',`authors` = '0',`thumbnail` =
'users/thumbnail/profile.gif',`icon` = 'users/icon/
profile.gif',`username` = 'ragrawal',`passwd` =
'as234kklj1324asdfjk3423',`last_visit` = '2007-12-07 23:17:51' WHERE
`id` IN (2)

it seems CakePHP is updating other field values with the default
values that are set in database.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to