Exemple #1
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getCurrencies()
 {
     return $this->hasMany(Currency::className(), ['billing_id' => 'id']);
 }
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getCurrency()
 {
     return $this->hasOne(\common\models\Currency::className(), ['id' => 'currency_id']);
 }
Exemple #3
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getFromCurrency()
 {
     return $this->hasOne(Currency::className(), ['id' => 'from_currency_id']);
 }
Exemple #4
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getCurrency()
 {
     return $this->hasOne(Currency::className(), ['id' => 'currencyId']);
 }
Exemple #5
0
 public function getCurrencyname()
 {
     return $this->hasOne(\common\models\Currency::className(), ['recid' => 'invcurrency']);
 }