UpdateByPk not working?

Hey all,

I have a very simple UpdateByPk call that’s failing for some reason:

      //Update last login date

      $currentTime = date('Y-m-d H:i:s', time());

      Account::model()->updateByPk((Yii::app()->user->id), array('lastLogOn'=>$currentTime));

I have checked, and values are correctly available for $currentTime and Yii::app()->user->id. However, I get the error ‘No columns are being updated for table “account”.

Any idea what could be going on?


are you solve this problem?


[color="#006400"]/* moved to yii 1.1 help forum */[/color]