add filters in page crud

This commit is contained in:
Simon Vieille 2021-04-30 12:20:30 +02:00
commit c09e526324
7 changed files with 174 additions and 5 deletions

View file

@ -17,6 +17,16 @@ class NavigationRepositoryQuery extends RepositoryQuery
parent::__construct($repository, 'n', $paginator);
}
public function filterById($id)
{
$this
->where('.id = :id')
->setParameter(':id', $id)
;
return $this;
}
public function whereDomain($domain)
{
return $this