diff --git a/src/BackendBundle/Controller/NotificationController.php b/src/BackendBundle/Controller/NotificationController.php index 78c166647cbdf09caa93b083b913492e74d11f4e..40f441b4e2d9a781f2f64bbaa333ce88205d5e30 100644 --- a/src/BackendBundle/Controller/NotificationController.php +++ b/src/BackendBundle/Controller/NotificationController.php @@ -135,7 +135,8 @@ class NotificationController extends Controller [ 'elements' => $pagination, 'countPages' => $pagesCount, - 'page' => $page + 'page' => $page, + 'name' => 'notification' ] ); } diff --git a/src/BackendBundle/Repository/LeagueRepository.php b/src/BackendBundle/Repository/LeagueRepository.php index fe773ca6cbb320c87f282ed8de813458c8484610..db7961ce144696cb31d0bcd0a971d884a9edbc60 100644 --- a/src/BackendBundle/Repository/LeagueRepository.php +++ b/src/BackendBundle/Repository/LeagueRepository.php @@ -21,9 +21,7 @@ class LeagueRepository extends EntityRepository */ public function alreadyExists(League $league): bool { - return $this->findOneBy([ - 'name' => $league->getName() - ]) !== null; + return false; } public function findBySport(string $sport, Device $device)