public function deleteForecasts() { $games = ArrayHelper::getColumn(Result::find()->where(['id_tournament' => $this->id_tournament])->all(), 'id_game'); return Forecasts::deleteAll(['and', ['in', 'id_game', $games], ['id_user' => $this->id_user]]); }