コード例 #1
0
ファイル: User.php プロジェクト: rafalsky/home-finance
 public function hasWallet()
 {
     return !$this->isNewRecord && Wallet::find()->where(['user_id' => $this->id])->exists();
 }