/** * @return \yii\db\ActiveQuery */ public function getCurrency() { return $this->hasOne(Currency::className(), ['code' => 'currency_code']); }