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 705B

преди 3 години
преди 3 години
преди 3 години
преди 3 години
преди 3 години
123456789101112131415161718192021222324252627
  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. ->innerJoin('.users', 'users');
  18. }
  19. return $this;
  20. }
  21. }