mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-20 22:53:49 +00:00
34 lines
972 B
PHP
34 lines
972 B
PHP
<?php
|
|
|
|
namespace Chill\PersonBundle\Repository\Household;
|
|
|
|
use Chill\PersonBundle\Entity\Household\Position;
|
|
//use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
|
|
//use Doctrine\Persistence\ManagerRegistry;
|
|
use Doctrine\ORM\EntityManagerInterface;
|
|
use Doctrine\ORM\EntityRepository;
|
|
|
|
/**
|
|
* @method Position|null find($id, $lockMode = null, $lockVersion = null)
|
|
* @method Position|null findOneBy(array $criteria, array $orderBy = null)
|
|
* @method Position[] findAll()
|
|
* @method Position[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null)
|
|
*/
|
|
final class PositionRepository
|
|
{
|
|
private EntityRepository $repository;
|
|
|
|
public function __construct(EntityManagerInterface $entityManager)
|
|
{
|
|
$this->repository = $entityManager->getRepository(Position::class);
|
|
}
|
|
|
|
/**
|
|
* @return Position[]
|
|
*/
|
|
public function findAll(): array
|
|
{
|
|
return $this->repository->findAll();
|
|
}
|
|
}
|