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

@@ -60,7 +60,7 @@ class RoleController extends AbstractController
if ($form->isValid()) {
$em = $this->getDoctrine()->getManager();
$entity = $em->getRepository('ChillEventBundle:Role')->find($id);
$entity = $em->getRepository(\Chill\EventBundle\Entity\Role::class)->find($id);
if (!$entity) {
throw $this->createNotFoundException('Unable to find Role entity.');
@@ -82,7 +82,7 @@ class RoleController extends AbstractController
{
$em = $this->getDoctrine()->getManager();
$entity = $em->getRepository('ChillEventBundle:Role')->find($id);
$entity = $em->getRepository(\Chill\EventBundle\Entity\Role::class)->find($id);
if (!$entity) {
throw $this->createNotFoundException('Unable to find Role entity.');
@@ -105,7 +105,7 @@ class RoleController extends AbstractController
{
$em = $this->getDoctrine()->getManager();
$entities = $em->getRepository('ChillEventBundle:Role')->findAll();
$entities = $em->getRepository(\Chill\EventBundle\Entity\Role::class)->findAll();
return $this->render('ChillEventBundle:Role:index.html.twig', [
'entities' => $entities,
@@ -135,7 +135,7 @@ class RoleController extends AbstractController
{
$em = $this->getDoctrine()->getManager();
$entity = $em->getRepository('ChillEventBundle:Role')->find($id);
$entity = $em->getRepository(\Chill\EventBundle\Entity\Role::class)->find($id);
if (!$entity) {
throw $this->createNotFoundException('Unable to find Role entity.');
@@ -158,7 +158,7 @@ class RoleController extends AbstractController
{
$em = $this->getDoctrine()->getManager();
$entity = $em->getRepository('ChillEventBundle:Role')->find($id);
$entity = $em->getRepository(\Chill\EventBundle\Entity\Role::class)->find($id);
if (!$entity) {
throw $this->createNotFoundException('Unable to find Role entity.');