add filters in page crud
This commit is contained in:
parent
ccfc562ead
commit
c09e526324
7 changed files with 174 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue