From b7f2e189dc47073eef060beb810e229d180adcb4 Mon Sep 17 00:00:00 2001 From: nobohan Date: Thu, 24 Jun 2021 13:47:40 +0200 Subject: [PATCH] small fix: use class name instead of string --- .../Controller/AccompanyingCourseController.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Bundle/ChillPersonBundle/Controller/AccompanyingCourseController.php b/src/Bundle/ChillPersonBundle/Controller/AccompanyingCourseController.php index d9bc07ffb..82581641e 100644 --- a/src/Bundle/ChillPersonBundle/Controller/AccompanyingCourseController.php +++ b/src/Bundle/ChillPersonBundle/Controller/AccompanyingCourseController.php @@ -2,6 +2,7 @@ namespace Chill\PersonBundle\Controller; +use Chill\ActivityBundle\Entity\Activity; use Chill\PersonBundle\Entity\AccompanyingPeriod; use Chill\PersonBundle\Entity\AccompanyingPeriodParticipation; use Chill\PersonBundle\Privacy\AccompanyingPeriodPrivacyEvent; @@ -96,7 +97,7 @@ class AccompanyingCourseController extends Controller } } - $activities = $this->getDoctrine()->getManager()->getRepository('ChillActivityBundle:Activity')->findBy( + $activities = $this->getDoctrine()->getManager()->getRepository(Activity::class)->findBy( ['accompanyingPeriod' => $accompanyingCourse], ['date' => 'DESC'], );