diff --git a/src/Entity/Attachments/AttachmentType.php b/src/Entity/Attachments/AttachmentType.php index cef36d79..4432309b 100644 --- a/src/Entity/Attachments/AttachmentType.php +++ b/src/Entity/Attachments/AttachmentType.php @@ -40,6 +40,7 @@ class AttachmentType extends AbstractStructuralDBElement { /** * @ORM\OneToMany(targetEntity="AttachmentType", mappedBy="parent", cascade={"persist"}) + * @ORM\OrderBy({"name" = "ASC"}) */ protected $children; diff --git a/src/Entity/Devices/Device.php b/src/Entity/Devices/Device.php index 7b15e971..76bfaa6a 100644 --- a/src/Entity/Devices/Device.php +++ b/src/Entity/Devices/Device.php @@ -67,6 +67,7 @@ class Device extends AbstractPartsContainingDBElement { /** * @ORM\OneToMany(targetEntity="Device", mappedBy="parent") + * @ORM\OrderBy({"name" = "ASC"}) */ protected $children; diff --git a/src/Entity/Parts/Category.php b/src/Entity/Parts/Category.php index 06d33aab..1797738a 100644 --- a/src/Entity/Parts/Category.php +++ b/src/Entity/Parts/Category.php @@ -39,6 +39,7 @@ class Category extends AbstractPartsContainingDBElement { /** * @ORM\OneToMany(targetEntity="Category", mappedBy="parent") + * @ORM\OrderBy({"name" = "ASC"}) */ protected $children; diff --git a/src/Entity/Parts/Footprint.php b/src/Entity/Parts/Footprint.php index d48ce706..e3e703b7 100644 --- a/src/Entity/Parts/Footprint.php +++ b/src/Entity/Parts/Footprint.php @@ -73,6 +73,7 @@ class Footprint extends AbstractPartsContainingDBElement /** * @ORM\OneToMany(targetEntity="Footprint", mappedBy="parent") + * @ORM\OrderBy({"name" = "ASC"}) */ protected $children; diff --git a/src/Entity/Parts/Manufacturer.php b/src/Entity/Parts/Manufacturer.php index 0411ac6f..ad8c2536 100644 --- a/src/Entity/Parts/Manufacturer.php +++ b/src/Entity/Parts/Manufacturer.php @@ -73,6 +73,7 @@ class Manufacturer extends AbstractCompany /** * @ORM\OneToMany(targetEntity="Manufacturer", mappedBy="parent") + * @ORM\OrderBy({"name" = "ASC"}) */ protected $children; diff --git a/src/Entity/Parts/MeasurementUnit.php b/src/Entity/Parts/MeasurementUnit.php index 5c8fc080..1136fb35 100644 --- a/src/Entity/Parts/MeasurementUnit.php +++ b/src/Entity/Parts/MeasurementUnit.php @@ -84,6 +84,7 @@ class MeasurementUnit extends AbstractPartsContainingDBElement /** * @ORM\OneToMany(targetEntity="MeasurementUnit", mappedBy="parent", cascade={"persist"}) + * @ORM\OrderBy({"name" = "ASC"}) */ protected $children; diff --git a/src/Entity/Parts/Storelocation.php b/src/Entity/Parts/Storelocation.php index add96b45..6e018d80 100644 --- a/src/Entity/Parts/Storelocation.php +++ b/src/Entity/Parts/Storelocation.php @@ -67,6 +67,7 @@ class Storelocation extends AbstractPartsContainingDBElement { /** * @ORM\OneToMany(targetEntity="Storelocation", mappedBy="parent") + * @ORM\OrderBy({"name" = "ASC"}) */ protected $children; diff --git a/src/Entity/Parts/Supplier.php b/src/Entity/Parts/Supplier.php index 06af968c..69814b93 100644 --- a/src/Entity/Parts/Supplier.php +++ b/src/Entity/Parts/Supplier.php @@ -69,6 +69,7 @@ class Supplier extends AbstractCompany { /** * @ORM\OneToMany(targetEntity="Supplier", mappedBy="parent") + * @ORM\OrderBy({"name" = "ASC"}) */ protected $children; diff --git a/src/Entity/PriceInformations/Currency.php b/src/Entity/PriceInformations/Currency.php index cfef3566..322c8173 100644 --- a/src/Entity/PriceInformations/Currency.php +++ b/src/Entity/PriceInformations/Currency.php @@ -78,6 +78,7 @@ class Currency extends AbstractStructuralDBElement /** * @ORM\OneToMany(targetEntity="Currency", mappedBy="parent", cascade={"persist"}) + * @ORM\OrderBy({"name" = "ASC"}) */ protected $children; diff --git a/src/Entity/UserSystem/Group.php b/src/Entity/UserSystem/Group.php index 4164359d..f9362b19 100644 --- a/src/Entity/UserSystem/Group.php +++ b/src/Entity/UserSystem/Group.php @@ -61,6 +61,7 @@ class Group extends AbstractStructuralDBElement implements HasPermissionsInterfa { /** * @ORM\OneToMany(targetEntity="Group", mappedBy="parent") + * @ORM\OrderBy({"name" = "ASC"}) */ protected $children;