diff --git a/src/Bundle/ChillPersonBundle/CRUD/Controller/EntityPersonCRUDController.php b/src/Bundle/ChillPersonBundle/CRUD/Controller/EntityPersonCRUDController.php index 6980e84b1..760b7ee9d 100644 --- a/src/Bundle/ChillPersonBundle/CRUD/Controller/EntityPersonCRUDController.php +++ b/src/Bundle/ChillPersonBundle/CRUD/Controller/EntityPersonCRUDController.php @@ -66,25 +66,6 @@ class EntityPersonCRUDController extends CRUDController return $qb; } - /** - * @throws \Exception - */ - protected function generateTemplateParameter(string $action, $entity, Request $request, array $defaultTemplateParameters = []): array - { - $person = $this->getPerson($request); - - if (null === $person) { - throw new \Exception('the `person_id` parameter is not set in the query. You should set it or override the current method to allow another behaviour: '.__METHOD__); - } - - return parent::generateTemplateParameter( - $action, - $entity, - $request, - \array_merge(['person' => $person], $defaultTemplateParameters) - ); - } - /** * Extract the person from the request. *