mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-28 10:33:49 +00:00
replace fqdn in event bundle
This commit is contained in:
@@ -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.');
|
||||
|
Reference in New Issue
Block a user