/** * @return \yii\db\ActiveQuery */ public function getAccountJournals() { return $this->hasMany(AccountJournal::className(), ['default_debit_account_id' => 'id']); }
/** * @return \yii\db\ActiveQuery */ public function getJournal() { return $this->hasOne(AccountJournal::className(), ['id' => 'journal_id']); }
/** * @return \yii\db\ActiveQuery */ public function getAccountJournals() { return $this->hasMany(AccountJournal::className(), ['currency' => 'id']); }