public function actionRemove(int $id)
    {

        RelatedProduct::deleteAll(['id' => $id]);

        return $this->redirect(\Yii::$app->request->referrer);
    }
public function actionRemove(int $id)
    {

        RelatedProduct::deleteAll(['id' => $id]);

        return $this->redirect(\Yii::$app->request->referrer);
    }
public function actionRemove ( int $ id ) { RelatedProduct :: deleteAll ( [ 'id' => $ id ] ) ; return $ this -> redirect ( \ Yii :: $ app -> request -> referrer ) ; }
Removes relation product
@param int $id
@return \yii\web\Response
Removes relation product