/** * @return \yii\db\ActiveQuery */ public function getProducts() { return $this->hasMany(MiProducts::className(), ['product_id' => 'product_id'])->viaTable('mi_product_tag', ['tag_id' => 'tag_id']); }
/** * @return \yii\db\ActiveQuery */ public function getMiProducts() { return $this->hasMany(MiProducts::className(), ['manufacturer_id' => 'manufacturer_id']); }
/** * @return \yii\db\ActiveQuery */ public function getMiProducts() { return $this->hasMany(MiProducts::className(), ['size_id' => 'size_id']); }
/** * @return \yii\db\ActiveQuery */ public function getProduct() { return $this->hasOne(MiProducts::className(), ['product_id' => 'product_id']); }