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