Skip to content

Commit

Permalink
Merge pull request #74 from chadyred/fix/typo-set-max-results
Browse files Browse the repository at this point in the history
fix(typo): doctrine typo on setMaxResults
  • Loading branch information
igormukhingmailcom authored Jul 21, 2020
2 parents 4987285 + 74bc3d1 commit 0b91159
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 0b91159

Please sign in to comment.