mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
Created a new `RegroupmentRepositoryInterface` to define repository methods for Regroupment entities. Updated `RegroupmentRepository` to implement this interface, and replaced its usage in `ExportConfigNormalizer` for better abstraction and testability.
26 lines
609 B
PHP
26 lines
609 B
PHP
<?php
|
|
|
|
namespace Chill\MainBundle\Repository;
|
|
|
|
use Chill\MainBundle\Entity\Regroupment;
|
|
use Doctrine\ORM\NonUniqueResultException;
|
|
use Doctrine\ORM\NoResultException;
|
|
use Doctrine\Persistence\ObjectRepository;
|
|
|
|
/**
|
|
* @template-extends ObjectRepository<Regroupment>
|
|
*/
|
|
interface RegroupmentRepositoryInterface extends ObjectRepository
|
|
{
|
|
/**
|
|
* @throws NonUniqueResultException
|
|
* @throws NoResultException
|
|
*/
|
|
public function findOneByName(string $name): ?Regroupment;
|
|
|
|
/**
|
|
* @return array<Regroupment>
|
|
*/
|
|
public function findRegroupmentAssociatedToNoCenter(): array;
|
|
}
|