| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 34 | public function createQuery(QueryFactoryInterface $queryFactory): QueryBuilder |
||
| 35 | { |
||
| 36 | $builder = $queryFactory->createQueryBuilder(); |
||
| 37 | |||
| 38 | $condition = $builder->expr()->eq( |
||
| 39 | 'u.' . $this->userMapping[$this->userMapping::FIELD_USERNAME], |
||
| 40 | ':username' |
||
| 41 | ); |
||
| 42 | |||
| 43 | return $builder |
||
| 44 | ->select('u') |
||
| 45 | ->from(UserInterface::class, 'u') |
||
| 46 | ->where($condition) |
||
| 47 | ->setParameter('username', $this->username); |
||
| 48 | } |
||
| 49 | } |
||
| 50 |