mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2026-04-07 13:33:43 +00:00
Resolve "Ajout d'un champ "externalId" pour les centres"
This commit is contained in:
@@ -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[]
|
||||
*/
|
||||
|
||||
@@ -24,4 +24,6 @@ interface CenterRepositoryInterface extends ObjectRepository
|
||||
* @return Center[]
|
||||
*/
|
||||
public function findActive(): array;
|
||||
|
||||
public function findOneByExternalId(string $externalId): ?Center;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user