<?php | |||||
namespace Lc\CaracoleBundle\Repository\User; | |||||
use App\Entity\User\GroupUser; | |||||
use Doctrine\Persistence\ManagerRegistry; | |||||
use Lc\SovBundle\Repository\AbstractRepository; | |||||
class GroupUserRepository extends AbstractRepository | |||||
{ | |||||
public function __construct(ManagerRegistry $registry) | |||||
{ | |||||
parent::__construct($registry, GroupUser::class); | |||||
} | |||||
} |
namespace Lc\CaracoleBundle\Repository\User; | namespace Lc\CaracoleBundle\Repository\User; | ||||
use Knp\Component\Pager\PaginatorInterface; | |||||
use Lc\CaracoleBundle\Repository\MerchantRepositoryQueryTrait; | use Lc\CaracoleBundle\Repository\MerchantRepositoryQueryTrait; | ||||
use Lc\SovBundle\Repository\AbstractRepositoryQuery; | |||||
use Lc\SovBundle\Repository\User\GroupUserRepositoryQuery as SovAbstractRepositoryQuery; | |||||
class GroupUserRepositoryQuery extends AbstractRepositoryQuery | |||||
class GroupUserRepositoryQuery extends SovAbstractRepositoryQuery | |||||
{ | { | ||||
use MerchantRepositoryQueryTrait; | use MerchantRepositoryQueryTrait; | ||||
public function __construct(GroupUserRepository $repository, PaginatorInterface $paginator) | |||||
{ | |||||
parent::__construct($repository, 'r', $paginator); | |||||
} | |||||
} | } |
namespace Lc\CaracoleBundle\Repository\User; | namespace Lc\CaracoleBundle\Repository\User; | ||||
use Lc\SovBundle\Repository\AbstractStore; | |||||
use Lc\SovBundle\Repository\User\GroupUserStore as SovGroupUserStore; | |||||
class GroupUserStore extends AbstractStore | |||||
class GroupUserStore extends SovGroupUserStore | |||||
{ | { | ||||
protected GroupUserRepositoryQuery $query; | |||||
public function __construct(GroupUserRepositoryQuery $query) | |||||
{ | |||||
$this->query = $query; | |||||
} | |||||
} | } |