diff --git a/src/Bundle/ChillMainBundle/Controller/LocationController.php b/src/Bundle/ChillMainBundle/Controller/LocationController.php index e6aba8fc3..dc59db9b1 100644 --- a/src/Bundle/ChillMainBundle/Controller/LocationController.php +++ b/src/Bundle/ChillMainBundle/Controller/LocationController.php @@ -7,14 +7,14 @@ use Symfony\Component\HttpFoundation\Request; class LocationController extends CRUDController { - public function customizeQuery(string $action, Request $request, $query): void + protected function customizeQuery(string $action, Request $request, $query): void { //$query->where('e.availableforusers', "'TRUE'"); // not working $query->where('e.availableForUsers = true'); //TODO not working } - - public function createEntity(string $action, Request $request): object + + protected function createEntity(string $action, Request $request): object { $entity = parent::createEntity($action, $request); @@ -22,4 +22,4 @@ class LocationController extends CRUDController return $entity; } -} \ No newline at end of file +}