Set default order in `Leaderboard->entries` Doctrine collection
This commit is contained in:
parent
e74098c1a2
commit
59d2500271
|
@ -38,7 +38,10 @@ class Leaderboard implements UuidPrimaryKeyInterface, GamePeriodReferenceInterfa
|
|||
]
|
||||
private ?GamePeriodInterface $gamePeriod = null;
|
||||
|
||||
#[ORM\OneToMany(mappedBy: 'leaderboard', targetEntity: LeaderboardEntry::class)]
|
||||
#[
|
||||
ORM\OneToMany(mappedBy: 'leaderboard', targetEntity: LeaderboardEntry::class),
|
||||
ORM\OrderBy(value: ['position' => 'ASC']),
|
||||
]
|
||||
private Collection $entries;
|
||||
|
||||
public function __construct()
|
||||
|
|
Reference in New Issue