*/ class DoctrinePaymentDelayRepository extends ServiceEntityRepository implements PaymentDelayRepositoryInterface { public function __construct(ManagerRegistry $registry) { parent::__construct($registry, PaymentDelay::class); } public function findById(int $id): ?PaymentDelay { return $this->find($id); } public function findAllOrdered(): array { return $this->createQueryBuilder('p') ->orderBy('p.position', 'ASC') ->addOrderBy('p.label', 'ASC') ->getQuery() ->getResult() ; } }