previewExporter->rows(); } catch (StaffingConfigurationException $e) { $this->addFlash('error', 'Ein Jobprofil oder Honorar der Besetzungsmatrix ist nicht (mehr) vorhanden: '.$e->getMessage()); return $this->redirectToRoute('app_administrative_system_staffing_rule_index'); } // The candidates are a computed list, not a query: page the finished rows. The Excel // export stays the full list. $pagination = $this->paginator->paginate( $rows, $request->query->getInt('page', 1), $request->query->getInt('limit', 50), ); return $this->render('administrative/system/staffing_rule/preview.html.twig', [ 'pagination' => $pagination, ]); } }