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?