Resolve "Ajout d'un champ "externalId" pour les centres"

This commit is contained in:
2026-03-24 15:41:31 +00:00
committed by Boris Waaub
parent a29eb3d94d
commit 1a9f12f357
5 changed files with 67 additions and 0 deletions

View File

@@ -29,6 +29,11 @@ final readonly class CenterRepository implements CenterRepositoryInterface
return $this->repository->find($id, $lockMode, $lockVersion);
}
public function findOneByExternalId(string $externalId): ?Center
{
return $this->repository->findOneBy(['externalId' => $externalId]);
}
/**
* @return Center[]
*/

View File

@@ -24,4 +24,6 @@ interface CenterRepositoryInterface extends ObjectRepository
* @return Center[]
*/
public function findActive(): array;
public function findOneByExternalId(string $externalId): ?Center;
}