예제 #1
0
 public function hasWallet()
 {
     return !$this->isNewRecord && Wallet::find()->where(['user_id' => $this->id])->exists();
 }