您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

GroupUserRepositoryQuery.php 705B

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. }