public function updateLastLoginAt() { if (!$this->isGuest) { if (($model = $this->loadModel()) !== null) { $model->lastLoginAt = sqlDateTime(); return $model->save(true, array('lastLoginAt')); } } return false; }