| Total Complexity | 2 |
| Total Lines | 31 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | class UserRepository extends ServiceEntityRepository |
||
| 16 | { |
||
| 17 | public function __construct(RegistryInterface $registry) |
||
| 20 | } |
||
| 21 | |||
| 22 | // /** |
||
| 23 | // * @return User[] Returns an array of User objects |
||
| 24 | // */ |
||
| 25 | /* |
||
| 26 | public function findByExampleField($value) |
||
| 27 | { |
||
| 28 | return $this->createQueryBuilder('u') |
||
| 29 | ->andWhere('u.exampleField = :val') |
||
| 30 | ->setParameter('val', $value) |
||
| 31 | ->orderBy('u.id', 'ASC') |
||
| 32 | ->setMaxResults(10) |
||
| 33 | ->getQuery() |
||
| 34 | ->getResult() |
||
| 35 | ; |
||
| 36 | } |
||
| 37 | */ |
||
| 38 | |||
| 39 | public function findUserByHash($hash): ?User |
||
| 50 |