This commit is contained in:
2022-10-05 15:23:28 +02:00
parent 58b1778544
commit a967e1ed17
194 changed files with 1580 additions and 1386 deletions

View File

@@ -15,7 +15,6 @@ use Chill\PersonBundle\Entity\AccompanyingPeriod\ClosingMotive;
use Doctrine\ORM\EntityManagerInterface;
use Doctrine\ORM\EntityRepository;
use Doctrine\ORM\Query\ResultSetMappingBuilder;
use UnexpectedValueException;
final class ClosingMotiveRepository implements ClosingMotiveRepositoryInterface
{
@@ -29,6 +28,32 @@ final class ClosingMotiveRepository implements ClosingMotiveRepositoryInterface
$this->repository = $entityManager->getRepository(ClosingMotive::class);
}
public function find($id): ?ClosingMotive
{
return $this->repository->find($id);
}
/**
* @return array|ClosingMotive[]
*/
public function findAll(): array
{
return $this->repository->findAll();
}
/**
* @return array|ClosingMotive[]
*/
public function findBy(array $criteria, ?array $orderBy = null, ?int $limit = null, ?int $offset = null): array
{
return $this->repository->findBy($criteria, $orderBy, $limit, $offset);
}
public function findOneBy(array $criteria): ?ClosingMotive
{
return $this->findOneBy($criteria);
}
/**
* @return mixed
*/
@@ -56,32 +81,6 @@ final class ClosingMotiveRepository implements ClosingMotiveRepositoryInterface
->getResult();
}
public function find($id): ?ClosingMotive
{
return $this->repository->find($id);
}
/**
* @return array|ClosingMotive[]
*/
public function findAll(): array
{
return $this->repository->findAll();
}
/**
* @return array|ClosingMotive[]
*/
public function findBy(array $criteria, ?array $orderBy = null, ?int $limit = null, ?int $offset = null): array
{
return $this->repository->findBy($criteria, $orderBy, $limit, $offset);
}
public function findOneBy(array $criteria): ?ClosingMotive
{
return $this->findOneBy($criteria);
}
public function getClassName(): string
{
return ClosingMotive::class;