From 2100d45671efbf5789d13c904230ce18f6513db2 Mon Sep 17 00:00:00 2001 From: Mathieu Jaumotte Date: Wed, 27 Sep 2023 16:18:33 +0200 Subject: [PATCH] fix phpstan error --- .../Export/Filter/AccompanyingCourseFilters/UserJobFilter.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Bundle/ChillPersonBundle/Export/Filter/AccompanyingCourseFilters/UserJobFilter.php b/src/Bundle/ChillPersonBundle/Export/Filter/AccompanyingCourseFilters/UserJobFilter.php index 65acb56e5..c221d0280 100644 --- a/src/Bundle/ChillPersonBundle/Export/Filter/AccompanyingCourseFilters/UserJobFilter.php +++ b/src/Bundle/ChillPersonBundle/Export/Filter/AccompanyingCourseFilters/UserJobFilter.php @@ -20,6 +20,7 @@ use Chill\MainBundle\Service\RollingDate\RollingDate; use Chill\MainBundle\Service\RollingDate\RollingDateConverterInterface; use Chill\MainBundle\Templating\TranslatableStringHelper; use Chill\PersonBundle\Export\Declarations; +use Doctrine\ORM\Query\Expr; use Doctrine\ORM\QueryBuilder; use Symfony\Bridge\Doctrine\Form\Type\EntityType; use Symfony\Component\Form\FormBuilderInterface; @@ -49,7 +50,8 @@ class UserJobFilter implements FilterInterface ->leftJoin( UserJobHistory::class, "{$p}_jobHistory", - $qb->expr()->eq("{$p}_jobHistory", "{$p}_user") + Expr\Join::WITH, + $qb->expr()->eq("{$p}_jobHistory.user", "{$p}_user") ) ->andWhere( $qb->expr()->andX(