コード例 #1
0
ファイル: Rate.php プロジェクト: zinchenkomax/moneychanger
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getToCurrency()
 {
     return $this->hasOne(Currency::className(), ['id' => 'to_currency_id']);
 }
コード例 #2
0
ファイル: Billing.php プロジェクト: zinchenkomax/moneychanger
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getCurrencies()
 {
     return $this->hasMany(Currency::className(), ['billing_id' => 'id']);
 }
コード例 #3
0
ファイル: Order.php プロジェクト: vetoni/toko
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getCurrencyCode()
 {
     return $this->hasOne(Currency::className(), ['code' => 'currency_code']);
 }
コード例 #4
0
 public function getCurrencyEmployee()
 {
     return $this->hasOne(Currency::className(), ['id' => 'id_currency_payment_of_employee']);
 }
コード例 #5
0
ファイル: BudgetItem.php プロジェクト: alexus007/budget
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getCurrency()
 {
     return $this->hasOne(\app\models\Currency::className(), ['id' => 'currency_id']);
 }