ConferenceRepository uses custom sorting
This commit is contained in:
@@ -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
|
||||||
// */
|
// */
|
||||||
|
|||||||
Reference in New Issue
Block a user