Skip to content

Commit

Permalink
PeriodPositionFreeLog: fix member filter. ref elefan-grenoble#1037 & e…
Browse files Browse the repository at this point in the history
  • Loading branch information
raphodn authored and OursDesCavernes committed Jan 20, 2024
1 parent e2198e4 commit 0acf033
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/AppBundle/Repository/PeriodPositionFreeLogRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@ class PeriodPositionFreeLogRepository extends \Doctrine\ORM\EntityRepository
public function getMemberPeriodPositionFreed(Membership $member)
{
$qb = $this->createQueryBuilder('ppfl')
->leftJoin('ppfl.periodPosition', 'pp')
->addSelect('pp')
->where('pp.shifter IN (:beneficiaries)')
->where('ppfl.beneficiary IN (:beneficiaries)')
->setParameter('beneficiaries', $member->getBeneficiaries());

$qb->orderBy('ppfl.createdAt', 'DESC');
Expand Down

0 comments on commit 0acf033

Please sign in to comment.