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