/** * @return \yii\db\ActiveQuery */ public function getPrice() { return $this->hasOne(Price::className(), ['id' => 'price_id']); }
/** * @return \yii\db\ActiveQuery */ public function getPrice() { return $this->hasOne(Price::className(), ['typeID' => 'typeID']); }