mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-03 13:33:48 +00:00
cs: Second part - ignore test/app
subdirectory.
This commit is contained in:
@@ -51,15 +51,15 @@ class PostalCodeController extends AbstractController
|
||||
$query = $this->getDoctrine()->getManager()
|
||||
->createQuery(
|
||||
sprintf(
|
||||
'SELECT p.id AS id, p.name AS name, p.code AS code, '
|
||||
'SELECT p.id AS id, p.name AS name, p.code AS code, '
|
||||
. 'country.name AS country_name, '
|
||||
. 'country.countryCode AS country_code '
|
||||
. 'FROM %s p '
|
||||
. 'JOIN p.country country '
|
||||
. 'WHERE LOWER(p.name) LIKE LOWER(:pattern) OR LOWER(p.code) LIKE LOWER(:pattern) '
|
||||
. 'ORDER BY code',
|
||||
PostalCode::class
|
||||
)
|
||||
PostalCode::class
|
||||
)
|
||||
)
|
||||
->setParameter('pattern', '%' . $pattern . '%')
|
||||
->setMaxResults(30);
|
||||
|
Reference in New Issue
Block a user