/**
  * @return \yii\db\ActiveQuery
  */
 public function getAccount()
 {
     return $this->hasOne(Account::className(), ['id' => 'account_id']);
 }
Beispiel #2
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getAccounts()
 {
     return $this->hasMany(Account::className(), ['parent_id' => 'id']);
 }