/** * @return \yii\db\ActiveQuery */ public function getPriceTypes() { return $this->hasMany(PriceTypes::className(), ['currency_code' => 'currency_code']); }
/** * @return \yii\db\ActiveQuery */ public function getPriceType() { return $this->hasOne(PriceTypes::className(), ['id' => 'price_type_id']); }