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.

GroupUserRepositoryQuery.php 703B

3 jaren geleden
3 jaren geleden
3 jaren geleden
1234567891011121314151617181920212223242526
  1. <?php
  2. namespace Lc\SovBundle\Repository\User;
  3. use Knp\Component\Pager\PaginatorInterface;
  4. use Lc\SovBundle\Repository\AbstractRepositoryQuery;
  5. class GroupUserRepositoryQuery extends AbstractRepositoryQuery implements GroupUserRepositoryQueryInterface
  6. {
  7. public function __construct(GroupUserRepository $repository, PaginatorInterface $paginator)
  8. {
  9. parent::__construct($repository, 'groupUser', $paginator);
  10. }
  11. protected $isJoinUsers = false;
  12. public function joinUsers(): self
  13. {
  14. if (!$this->isJoinUsers) {
  15. $this->isJoinUsers = true;
  16. return $this
  17. ->leftJoin('.users', 'users');
  18. }
  19. return $this;
  20. }
  21. }