| 1 | <?php |
||
| 15 | class EmployeeGroupRepository extends ServiceEntityRepository |
||
| 16 | { |
||
| 17 | public function __construct(ManagerRegistry $registry) |
||
| 21 | |||
| 22 | // /** |
||
| 23 | // * @return EmployeeGroup[] Returns an array of EmployeeGroup objects |
||
| 24 | // */ |
||
| 25 | /* |
||
| 26 | public function findByExampleField($value) |
||
| 27 | { |
||
| 28 | return $this->createQueryBuilder('e') |
||
| 29 | ->andWhere('e.exampleField = :val') |
||
| 30 | ->setParameter('val', $value) |
||
| 31 | ->orderBy('e.id', 'ASC') |
||
| 32 | ->setMaxResults(10) |
||
| 33 | ->getQuery() |
||
| 34 | ->getResult() |
||
| 35 | ; |
||
| 36 | } |
||
| 37 | */ |
||
| 38 | |||
| 39 | /* |
||
| 40 | public function findOneBySomeField($value): ?EmployeeGroup |
||
| 41 | { |
||
| 42 | return $this->createQueryBuilder('e') |
||
| 43 | ->andWhere('e.exampleField = :val') |
||
| 44 | ->setParameter('val', $value) |
||
| 45 | ->getQuery() |
||
| 46 | ->getOneOrNullResult() |
||
| 47 | ; |
||
| 48 | } |
||
| 49 | */ |
||
| 50 | } |
||
| 51 |