Skip to content

Commit

Permalink
fix(typo): doctrine typo on setMaxResults
Browse files Browse the repository at this point in the history
  • Loading branch information
florian.cellier committed Jul 21, 2020
1 parent 4987285 commit 74bc3d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Doctrine/ORM/CustomerRepositoryTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public function findByEmailPart(string $email, int $limit = 10): array
return $this->createQueryBuilder('o')
->andWhere('o.email LIKE :phrase')
->setParameter('phrase', '%' . $email . '%')
->setMaxResult($limit)
->setMaxResults($limit)
->getQuery()
->getResult()
;
Expand Down

0 comments on commit 74bc3d1

Please sign in to comment.