mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 07:03:49 +00:00
first commit
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user