replace fqdn in event bundle

This commit is contained in:
2022-04-30 00:42:03 +02:00
parent d0cc0e775f
commit 6da19b0135
7 changed files with 29 additions and 29 deletions

View File

@@ -97,7 +97,7 @@ class EventController extends AbstractController
public function deleteAction($event_id, Request $request)
{
$em = $this->getDoctrine()->getManager();
$event = $em->getRepository('ChillEventBundle:Event')->findOneBy([
$event = $em->getRepository(\Chill\EventBundle\Entity\Event::class)->findOneBy([
'id' => $event_id,
]);
@@ -151,7 +151,7 @@ class EventController extends AbstractController
{
$em = $this->getDoctrine()->getManager();
$entity = $em->getRepository('ChillEventBundle:Event')->find($event_id);
$entity = $em->getRepository(\Chill\EventBundle\Entity\Event::class)->find($event_id);
if (!$entity) {
throw $this->createNotFoundException('Unable to find Event entity.');
@@ -192,11 +192,11 @@ class EventController extends AbstractController
$person->getCenter()
);
$total = $em->getRepository('ChillEventBundle:Participation')->countByPerson($person_id);
$total = $em->getRepository(\Chill\EventBundle\Entity\Participation::class)->countByPerson($person_id);
$paginator = $this->paginator->create($total);
$participations = $em->getRepository('ChillEventBundle:Participation')->findByPersonInCircle(
$participations = $em->getRepository(\Chill\EventBundle\Entity\Participation::class)->findByPersonInCircle(
$person_id,
$reachablesCircles,
$paginator->getCurrentPage()->getFirstItemNumber(),
@@ -352,7 +352,7 @@ class EventController extends AbstractController
{
$em = $this->getDoctrine()->getManager();
$entity = $em->getRepository('ChillEventBundle:Event')->find($event_id);
$entity = $em->getRepository(\Chill\EventBundle\Entity\Event::class)->find($event_id);
if (!$entity) {
throw $this->createNotFoundException('Unable to find Event entity.');