mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-28 02:23:51 +00:00
replace fqdn in event bundle
This commit is contained in:
@@ -258,7 +258,7 @@ class ParticipationController extends AbstractController
|
||||
public function deleteAction($participation_id, Request $request)
|
||||
{
|
||||
$em = $this->getDoctrine()->getManager();
|
||||
$participation = $em->getRepository('ChillEventBundle:Participation')->findOneBy([
|
||||
$participation = $em->getRepository(\Chill\EventBundle\Entity\Participation::class)->findOneBy([
|
||||
'id' => $participation_id,
|
||||
]);
|
||||
|
||||
@@ -336,7 +336,7 @@ class ParticipationController extends AbstractController
|
||||
*/
|
||||
public function editMultipleAction($event_id)
|
||||
{
|
||||
$event = $this->getDoctrine()->getRepository('ChillEventBundle:Event')
|
||||
$event = $this->getDoctrine()->getRepository(\Chill\EventBundle\Entity\Event::class)
|
||||
->find($event_id);
|
||||
|
||||
if (null === $event) {
|
||||
@@ -467,7 +467,7 @@ class ParticipationController extends AbstractController
|
||||
public function updateMultipleAction($event_id, Request $request)
|
||||
{
|
||||
/** @var \Chill\EventBundle\Entity\Event $event */
|
||||
$event = $this->getDoctrine()->getRepository('ChillEventBundle:Event')
|
||||
$event = $this->getDoctrine()->getRepository(\Chill\EventBundle\Entity\Event::class)
|
||||
->find($event_id);
|
||||
|
||||
if (null === $event) {
|
||||
@@ -569,7 +569,7 @@ class ParticipationController extends AbstractController
|
||||
// prevent error: `Argument 2 passed to ::getInt() must be of the type int, null given`
|
||||
|
||||
if (null !== $event_id) {
|
||||
$event = $em->getRepository('ChillEventBundle:Event')
|
||||
$event = $em->getRepository(\Chill\EventBundle\Entity\Event::class)
|
||||
->find($event_id);
|
||||
|
||||
if (null === $event) {
|
||||
|
Reference in New Issue
Block a user