From 28b299d5377a95526efd1bb4b3f83d09b56661a9 Mon Sep 17 00:00:00 2001 From: Dmitry Date: Sun, 5 Jan 2025 19:51:50 -0800 Subject: [PATCH] Update getAll method to return currencies sorted by code in ascending order. --- .../Infrastructure/Doctrine/Repository/CurrencyRepository.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/EconumoBundle/Infrastructure/Doctrine/Repository/CurrencyRepository.php b/src/EconumoBundle/Infrastructure/Doctrine/Repository/CurrencyRepository.php index 49055425..b60f74b0 100644 --- a/src/EconumoBundle/Infrastructure/Doctrine/Repository/CurrencyRepository.php +++ b/src/EconumoBundle/Infrastructure/Doctrine/Repository/CurrencyRepository.php @@ -44,7 +44,7 @@ public function get(Id $id): Currency */ public function getAll(): array { - return $this->findAll(); + return $this->findBy([], ['code' => 'ASC']); } /**