|
12345678910111213141516171819202122232425 |
- <?php
-
- namespace Lc\CaracoleBundle\Repository\Section;
-
- use Knp\Component\Pager\PaginatorInterface;
- use Lc\CaracoleBundle\Repository\MerchantRepositoryQueryTrait;
- use Lc\SovBundle\Repository\AbstractRepositoryQuery;
-
- class SectionRepositoryQuery extends AbstractRepositoryQuery
- {
- use MerchantRepositoryQueryTrait;
-
- public function __construct(SectionRepository $repository, PaginatorInterface $paginator)
- {
- parent::__construct($repository, 'r', $paginator);
- }
-
- public function filterByIsDefault(bool $isDefault)
- {
- return $this
- ->andWhere('.isDefault = :isDefault')
- ->setParameter('isDefault', $isDefault);
- }
-
- }
|