/** * @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']); }
/** * @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']); }
/** * @return \yii\db\ActiveQuery */ public function getCreatorAccount() { return $this->hasOne(Account::className(), ['id' => 'creator_account_id']); }