mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
Add querybuilder method to person resource repository
This commit is contained in:
parent
c7bd60a106
commit
2a151d13ed
@ -14,6 +14,7 @@ namespace Chill\PersonBundle\Repository;
|
|||||||
use Chill\PersonBundle\Entity\Person\PersonResource;
|
use Chill\PersonBundle\Entity\Person\PersonResource;
|
||||||
use Doctrine\ORM\EntityManagerInterface;
|
use Doctrine\ORM\EntityManagerInterface;
|
||||||
use Doctrine\ORM\EntityRepository;
|
use Doctrine\ORM\EntityRepository;
|
||||||
|
use Doctrine\ORM\QueryBuilder;
|
||||||
use Doctrine\Persistence\ObjectRepository;
|
use Doctrine\Persistence\ObjectRepository;
|
||||||
|
|
||||||
final class PersonResourceRepository implements ObjectRepository
|
final class PersonResourceRepository implements ObjectRepository
|
||||||
@ -25,6 +26,11 @@ final class PersonResourceRepository implements ObjectRepository
|
|||||||
$this->repository = $entityManager->getRepository(PersonResource::class);
|
$this->repository = $entityManager->getRepository(PersonResource::class);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function createQueryBuilder(string $alias, string $indexBy = null): QueryBuilder
|
||||||
|
{
|
||||||
|
return $this->repository->createQueryBuilder($alias, $indexBy);
|
||||||
|
}
|
||||||
|
|
||||||
public function find($id): ?PersonResource
|
public function find($id): ?PersonResource
|
||||||
{
|
{
|
||||||
return $this->repository->find($id);
|
return $this->repository->find($id);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user