*/ class DoctrineClientAddressRepository extends ServiceEntityRepository implements ClientAddressRepositoryInterface { public function __construct(ManagerRegistry $registry) { parent::__construct($registry, ClientAddress::class); } public function findById(int $id): ?ClientAddress { return $this->find($id); } public function save(ClientAddress $address): void { $this->getEntityManager()->persist($address); $this->getEntityManager()->flush(); } }