Skip to content
Snippets Groups Projects
Commit 896ae656 authored by Jeremy Guiselin's avatar Jeremy Guiselin
Browse files

fix notification + remove unique league

parent f06e1b2c
No related branches found
No related tags found
No related merge requests found
......@@ -135,7 +135,8 @@ class NotificationController extends Controller
[
'elements' => $pagination,
'countPages' => $pagesCount,
'page' => $page
'page' => $page,
'name' => 'notification'
]
);
}
......
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment