feat(organizational-unit): order children alphabetically by name
ogcore-debian-package/pipeline/head This commit looks good Details
testing/ogcore-api/pipeline/head There was a failure building this commit Details

pull/125/head
Juan Manuel Bardallo 2026-07-09 09:50:58 +02:00
parent 0acf27c0e1
commit 6b8cd0834b
1 changed files with 1 additions and 0 deletions

View File

@ -45,6 +45,7 @@ class OrganizationalUnit extends AbstractEntity
* @var Collection<int, self>
*/
#[ORM\OneToMany(mappedBy: 'parent', targetEntity: self::class)]
#[ORM\OrderBy(['name' => 'ASC'])]
private Collection $organizationalUnits;
#[ORM\ManyToOne(targetEntity: NetworkSettings::class, inversedBy: 'organizationalUnits', cascade: ['persist'])]