public function actionSetRelated() { $this->item->getRelatedBehavior()->setActive($this->relatedItem->primaryKey, Yii::$app->request->post('status')); }