public function init()
 {
     $this->name = \Yii::t('skeeks/money', "Currency management");
     $this->modelShowAttribute = "code";
     $this->modelClassName = Currency::className();
     parent::init();
 }
Пример #2
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getBaseRateCurrency()
 {
     return $this->hasOne(Currency::className(), ['code' => 'base_rate_currency_code']);
 }
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getCurrency()
 {
     return $this->hasOne(Currency::className(), ['code' => 'currency_code']);
 }
Пример #4
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getPurchasingCurrency()
 {
     return $this->hasOne(Currency::className(), ['code' => 'purchasing_currency']);
 }