feat: don't filter destinations by end date in autocompletion
This commit is contained in:
@@ -49,8 +49,7 @@ class DestinationRepository extends ServiceEntityRepository
|
|||||||
$qb->expr()->orX(
|
$qb->expr()->orX(
|
||||||
$qb->expr()->like('destination.product', ':search'),
|
$qb->expr()->like('destination.product', ':search'),
|
||||||
$qb->expr()->like('destination.hotel', ':search'),
|
$qb->expr()->like('destination.hotel', ':search'),
|
||||||
$qb->expr()->like('DATE_FORMAT(destination.dateFrom, \'%d.%m.%y\')', ':search'),
|
$qb->expr()->like('DATE_FORMAT(destination.dateFrom, \'%d.%m.%y\')', ':search')
|
||||||
$qb->expr()->like('DATE_FORMAT(destination.dateTo, \'%d.%m.%y\')', ':search')
|
|
||||||
))
|
))
|
||||||
)
|
)
|
||||||
->setParameter('search', '%'.$this->escapeLikeWildcards($search).'%')
|
->setParameter('search', '%'.$this->escapeLikeWildcards($search).'%')
|
||||||
|
|||||||
Reference in New Issue
Block a user