ConferenceRepository uses custom sorting

This commit is contained in:
2024-07-28 00:57:54 -04:00
parent edda567057
commit 408cc0d88a

View File

@@ -16,6 +16,12 @@ class ConferenceRepository extends ServiceEntityRepository
parent::__construct($registry, Conference::class); 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 // * @return Conference[] Returns an array of Conference objects
// */ // */