init of Murph
This commit is contained in:
commit
b92ad093f6
221 changed files with 17653 additions and 0 deletions
27
core/Repository/Site/NavigationRepositoryQuery.php
Normal file
27
core/Repository/Site/NavigationRepositoryQuery.php
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
<?php
|
||||
|
||||
namespace App\Core\Repository\Site;
|
||||
|
||||
use App\Core\Repository\RepositoryQuery;
|
||||
use Knp\Component\Pager\PaginatorInterface;
|
||||
|
||||
/**
|
||||
* class NavigationRepositoryQuery.
|
||||
*
|
||||
* @author Simon Vieille <simon@deblan.fr>
|
||||
*/
|
||||
class NavigationRepositoryQuery extends RepositoryQuery
|
||||
{
|
||||
public function __construct(NavigationRepository $repository, PaginatorInterface $paginator)
|
||||
{
|
||||
parent::__construct($repository, 'n', $paginator);
|
||||
}
|
||||
|
||||
public function whereDomain($domain)
|
||||
{
|
||||
return $this
|
||||
->andWhere('.domain = :domain')
|
||||
->setParameter(':domain', $domain)
|
||||
;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue