コード例 #1
0
ファイル: User.php プロジェクト: dersonsena/yii2-user-module
 /**
  * @inheritdoc
  */
 public function afterFind()
 {
     $this->currentPassword = $this->password;
     if (!$this->isNewRecord) {
         $this->password = '';
     }
     parent::afterFind();
 }