ConferenceRepository uses custom sorting

This commit is contained in:
prodriguez committed 2024-07-28 00:57:54 -04:00
1 parent edda567057
commit 408cc0d88a
1 file changed
+6
+6
View File
@@ -16,6 +16,12 @@ class ConferenceRepository extends ServiceEntityRepository
parent::__construct($registry, Conference::class);
}
public function findAll(): array
{
// Override findAll() to use custom sorting
return $this->findBy([], ['year' => 'ASC', 'city' => 'ASC']);
}
// /**
// * @return Conference[] Returns an array of Conference objects
// */