28 lines
624 B
PHP
28 lines
624 B
PHP
<?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)
|
|
;
|
|
}
|
|
}
|