/** * @return \yii\db\ActiveQuery */ public function getProductType() { return $this->hasOne(Producttypes::className(), ['ProductTypeId' => 'ProductTypeId']); }
/** * @return \yii\db\ActiveQuery */ public function getProductType() { return $this->hasOne(Producttypes::className(), ['ProductTypeId' => 'ProductTypeId']); }