2021-03-20 13:40:38 +01:00
|
|
|
<?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);
|
|
|
|
}
|
2021-03-23 11:52:44 +01:00
|
|
|
|
|
|
|
public function whereDomain($domain)
|
|
|
|
{
|
|
|
|
return $this
|
|
|
|
->andWhere('.domain = :domain')
|
|
|
|
->setParameter(':domain', $domain);
|
|
|
|
}
|
2021-03-20 13:40:38 +01:00
|
|
|
}
|