|
12345678910111213141516171819202122232425262728 |
- <?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->andWhereEqual('isDefault', $isDefault);
- }
-
- public function filterByIsCommon(bool $isCommon)
- {
- return $this->andWhereEqual('isCommon', $isCommon);
- }
-
- }
|