mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
change visibility of methods in LocationCotnroller
This commit is contained in:
parent
693a2889bc
commit
4d55b0582c
@ -7,14 +7,14 @@ use Symfony\Component\HttpFoundation\Request;
|
|||||||
|
|
||||||
class LocationController extends CRUDController
|
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'"); // not working
|
||||||
$query->where('e.availableForUsers = true'); //TODO 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);
|
$entity = parent::createEntity($action, $request);
|
||||||
|
|
||||||
@ -22,4 +22,4 @@ class LocationController extends CRUDController
|
|||||||
|
|
||||||
return $entity;
|
return $entity;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user