Skip to content

Commit

Permalink
Merge pull request #76 from Setono/fix-aoc-plugin-compatibility-again
Browse files Browse the repository at this point in the history
Fixed: Compatibility with AdminOrderCreationPlugin
  • Loading branch information
igormukhingmailcom committed Jul 21, 2020
2 parents 0b91159 + daa8e66 commit 3263631
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Doctrine/ORM/CustomerRepositoryTrait.php
Expand Up @@ -16,12 +16,12 @@ trait CustomerRepositoryTrait
*/
abstract public function createQueryBuilder($alias, $indexBy = null);

public function findByEmailPart(string $email, int $limit = 10): array
public function findByEmailPart(string $email): array
{
return $this->createQueryBuilder('o')
->andWhere('o.email LIKE :phrase')
->setParameter('phrase', '%' . $email . '%')
->setMaxResults($limit)
->setMaxResults(10)
->getQuery()
->getResult()
;
Expand Down
2 changes: 1 addition & 1 deletion src/Repository/CustomerRepositoryInterface.php
Expand Up @@ -8,5 +8,5 @@

interface CustomerRepositoryInterface extends BaseCustomerRepositoryInterface
{
public function findByEmailPart(string $email, int $limit = 10): array;
public function findByEmailPart(string $email): array;
}

0 comments on commit 3263631

Please sign in to comment.