fix phpstan error

This commit is contained in:
Mathieu Jaumotte 2023-09-27 16:18:33 +02:00
parent aeb0d5eab8
commit 2100d45671

View File

@ -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(