diff --git a/src/Bundle/ChillCalendarBundle/Controller/CalendarController.php b/src/Bundle/ChillCalendarBundle/Controller/CalendarController.php index 68640f3f4..ff34aaf45 100644 --- a/src/Bundle/ChillCalendarBundle/Controller/CalendarController.php +++ b/src/Bundle/ChillCalendarBundle/Controller/CalendarController.php @@ -81,7 +81,7 @@ class CalendarController extends AbstractController } /** @var Calendar $entity */ - $entity = $em->getRepository('ChillCalendarBundle:Calendar')->find($id); + $entity = $em->getRepository(\Chill\CalendarBundle\Entity\Calendar::class)->find($id); if (!$entity) { throw $this->createNotFoundException('Unable to find Calendar entity.'); @@ -139,7 +139,7 @@ class CalendarController extends AbstractController $view = '@ChillCalendar/Calendar/editByUser.html.twig'; } - $entity = $em->getRepository('ChillCalendarBundle:Calendar')->find($id); + $entity = $em->getRepository(\Chill\CalendarBundle\Entity\Calendar::class)->find($id); if (!$entity) { throw $this->createNotFoundException('Unable to find Calendar entity.'); @@ -314,7 +314,7 @@ class CalendarController extends AbstractController } /** @var Calendar $entity */ - $entity = $em->getRepository('ChillCalendarBundle:Calendar')->find($id); + $entity = $em->getRepository(\Chill\CalendarBundle\Entity\Calendar::class)->find($id); if (null === $entity) { throw $this->createNotFoundException('Unable to find Calendar entity.');