public function copyAvatarFromSso(SsoModel $sso) { if ($sso->hasNotEmpty('avatar')) { $this->set('avatar', $sso->get('avatar')); $this->save(); } }