Where can there be a mistake? print_r ($ game-> getErrors ()); gives Array ()
public function actionUpdate($id) { $game = Game::findOne($id); $screen = Screenshots::find()->where(['game_id' => $id])->All(); if (!isset($game, $screen)) { throw new NotFoundHttpException("The game was not found."); } $game->scenario = 'update'; foreach ($screen as $key) { $key->scenario = 'update'; } if (Model::loadMultiple([$game, $screen], Yii::$app->request->post())) { if ($game->validate() && $screen->validate()) { $game->save(false); foreach ($screen as $key) { $key->save(false); } return $this->redirect(['game/view', 'id' => $id]); } } return $this->render('update', [ 'game' => $game, 'screen' => $screen, ]); }