| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 31 | public function create(Doctrine\ORM\EntityManagerInterface $em, string $email): Doctrine\ORM\Query |
||
| 32 | { |
||
| 33 | return $em->createQueryBuilder() |
||
| 34 | ->select('u') |
||
| 35 | ->from(SixtyEightPublishers\User\ForgotPassword\DoctrineEntity\IUser::class, 'u') |
||
| 36 | ->where('u.' . $this->mapping[SixtyEightPublishers\User\Common\UserMapping::FILED_EMAIL] . ' = :email') |
||
| 37 | ->setParameter('email', $email) |
||
| 38 | ->setMaxResults(1) |
||
| 39 | ->getQuery(); |
||
| 40 | } |
||
| 41 | } |
||
| 42 |