/**
  * @return \yii\db\ActiveQuery
  */
 public function getAccounts()
 {
     return $this->hasMany(Account::className(), ['balance_item_id' => 'id']);
 }
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getAccountTo()
 {
     return $this->hasOne(Account::className(), ['id' => 'account_to_id']);
 }
Exemple #3
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getAccounts()
 {
     return $this->hasMany(Account::className(), ['currency_id' => 'id']);
 }
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getAccounts()
 {
     return $this->hasMany(Account::className(), ['ID_CurrencyOfThePayments' => 'ID']);
 }
Exemple #5
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getCreatorAccount()
 {
     return $this->hasOne(Account::className(), ['id' => 'creator_account_id']);
 }