mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
location: filter location endpoint by NULL names
This commit is contained in:
parent
72337a8fba
commit
0439e6a821
@ -22,12 +22,15 @@ class LocationApiController extends ApiController
|
||||
),
|
||||
$query->expr()->andX(
|
||||
$query->expr()->eq('e.availableForUsers', "'TRUE'"),
|
||||
$query->expr()->eq('e.active', "'TRUE'")
|
||||
$query->expr()->eq('e.active', "'TRUE'"),
|
||||
$query->expr()->isNotNull('e.name'),
|
||||
$query->expr()->neq('e.name', ':emptyString'),
|
||||
)
|
||||
))
|
||||
->setParameters([
|
||||
'user' => $this->getUser(),
|
||||
'dateBefore' => (new \DateTime())->sub(new \DateInterval('P6M'))
|
||||
'dateBefore' => (new \DateTime())->sub(new \DateInterval('P6M')),
|
||||
'emptyString' => '',
|
||||
]);
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user