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