Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

SectionRepositoryQuery.php 625B

il y a 3 ans
il y a 3 ans
il y a 3 ans
il y a 3 ans
il y a 3 ans
il y a 3 ans
il y a 3 ans
il y a 3 ans
12345678910111213141516171819202122232425
  1. <?php
  2. namespace Lc\CaracoleBundle\Repository\Section;
  3. use Knp\Component\Pager\PaginatorInterface;
  4. use Lc\CaracoleBundle\Repository\MerchantRepositoryQueryTrait;
  5. use Lc\SovBundle\Repository\AbstractRepositoryQuery;
  6. class SectionRepositoryQuery extends AbstractRepositoryQuery
  7. {
  8. use MerchantRepositoryQueryTrait;
  9. public function __construct(SectionRepository $repository, PaginatorInterface $paginator)
  10. {
  11. parent::__construct($repository, 'section', $paginator);
  12. }
  13. public function filterByIsDefault(bool $isDefault)
  14. {
  15. return $this->andWhereEqual('isDefault', $isDefault);
  16. }
  17. }