Exemple #1
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getToCurrency()
 {
     return $this->hasOne(Currency::className(), ['id' => 'to_currency_id']);
 }
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getCurrencies()
 {
     return $this->hasMany(Currency::className(), ['billing_id' => 'id']);
 }
Exemple #3
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getCurrencyCode()
 {
     return $this->hasOne(Currency::className(), ['code' => 'currency_code']);
 }
 public function getCurrencyEmployee()
 {
     return $this->hasOne(Currency::className(), ['id' => 'id_currency_payment_of_employee']);
 }
Exemple #5
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getCurrency()
 {
     return $this->hasOne(\app\models\Currency::className(), ['id' => 'currency_id']);
 }