first commit

This commit is contained in:
2022-03-16 11:36:46 +01:00
parent 5c68879509
commit 387b7c2fbd
2 changed files with 74 additions and 1 deletions

View File

@@ -78,6 +78,16 @@ final class AccompanyingPeriodRepository implements ObjectRepository
->getResult();
}
public function findConfirmedByUser(User $user)
{
$qb = $this->createQueryBuilder('ap');
$qb->where($qb->expr()->eq('ap.user', ':user'))
->andWhere('ap.step', 'CONFIRMED')
->setParameter('user', $user);
return $qb;
}
public function findOneBy(array $criteria): ?AccompanyingPeriod
{
return $this->findOneBy($criteria);