You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
861B

  1. <?php
  2. namespace Lc\CaracoleBundle\Repository\User;
  3. use Lc\CaracoleBundle\Repository\MerchantStoreTrait;
  4. use Lc\CaracoleBundle\Repository\StoreTrait;
  5. use Lc\SovBundle\Repository\RepositoryQueryInterface;
  6. use Lc\SovBundle\Repository\User\UserStore as SovUserStore;
  7. class UserStore extends SovUserStore
  8. {
  9. use StoreTrait;
  10. use MerchantStoreTrait;
  11. public function filtersDefault(RepositoryQueryInterface $query): RepositoryQueryInterface
  12. {
  13. $this->addFilterByMerchantOptionnal($query);
  14. return $query;
  15. }
  16. public function relationsDefault(RepositoryQueryInterface $query): RepositoryQueryInterface
  17. {
  18. return $query;
  19. }
  20. public function getJoinGroupUsers(){
  21. $query = $this->createQuery();
  22. $query->joinGroupUsers(true);
  23. $query->orderBy('id');
  24. return $query->find();
  25. }
  26. }