| Conditions | 1 |
| Paths | 1 |
| Total Lines | 17 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 36 | public function create(string $login): Doctrine\ORM\Query |
||
| 37 | { |
||
| 38 | $builder = $this->em->createQueryBuilder(); |
||
| 39 | |||
| 40 | $condition = $builder->expr()->eq( |
||
| 41 | 'u.' . $this->userMapping[$this->userMapping::FIELD_LOGIN], |
||
| 42 | ':login' |
||
| 43 | ); |
||
| 44 | |||
| 45 | return $builder |
||
| 46 | ->select('u') |
||
| 47 | ->from(SixtyEightPublishers\User\Authentication\DoctrineEntity\IUser::class, 'u') |
||
| 48 | ->where($condition) |
||
| 49 | ->setParameter('login', $login) |
||
| 50 | ->setMaxResults(1) |
||
| 51 | ->getQuery(); |
||
| 52 | } |
||
| 53 | } |
||
| 54 |