Order data structrues in select pickers alphabetically by their names.

This commit is contained in:
Jan Böhmer 2020-04-01 16:43:42 +02:00
parent 4ccfeef6ec
commit 63ca177699
10 changed files with 10 additions and 0 deletions

View file

@ -40,6 +40,7 @@ class AttachmentType extends AbstractStructuralDBElement
{ {
/** /**
* @ORM\OneToMany(targetEntity="AttachmentType", mappedBy="parent", cascade={"persist"}) * @ORM\OneToMany(targetEntity="AttachmentType", mappedBy="parent", cascade={"persist"})
* @ORM\OrderBy({"name" = "ASC"})
*/ */
protected $children; protected $children;

View file

@ -67,6 +67,7 @@ class Device extends AbstractPartsContainingDBElement
{ {
/** /**
* @ORM\OneToMany(targetEntity="Device", mappedBy="parent") * @ORM\OneToMany(targetEntity="Device", mappedBy="parent")
* @ORM\OrderBy({"name" = "ASC"})
*/ */
protected $children; protected $children;

View file

@ -39,6 +39,7 @@ class Category extends AbstractPartsContainingDBElement
{ {
/** /**
* @ORM\OneToMany(targetEntity="Category", mappedBy="parent") * @ORM\OneToMany(targetEntity="Category", mappedBy="parent")
* @ORM\OrderBy({"name" = "ASC"})
*/ */
protected $children; protected $children;

View file

@ -73,6 +73,7 @@ class Footprint extends AbstractPartsContainingDBElement
/** /**
* @ORM\OneToMany(targetEntity="Footprint", mappedBy="parent") * @ORM\OneToMany(targetEntity="Footprint", mappedBy="parent")
* @ORM\OrderBy({"name" = "ASC"})
*/ */
protected $children; protected $children;

View file

@ -73,6 +73,7 @@ class Manufacturer extends AbstractCompany
/** /**
* @ORM\OneToMany(targetEntity="Manufacturer", mappedBy="parent") * @ORM\OneToMany(targetEntity="Manufacturer", mappedBy="parent")
* @ORM\OrderBy({"name" = "ASC"})
*/ */
protected $children; protected $children;

View file

@ -84,6 +84,7 @@ class MeasurementUnit extends AbstractPartsContainingDBElement
/** /**
* @ORM\OneToMany(targetEntity="MeasurementUnit", mappedBy="parent", cascade={"persist"}) * @ORM\OneToMany(targetEntity="MeasurementUnit", mappedBy="parent", cascade={"persist"})
* @ORM\OrderBy({"name" = "ASC"})
*/ */
protected $children; protected $children;

View file

@ -67,6 +67,7 @@ class Storelocation extends AbstractPartsContainingDBElement
{ {
/** /**
* @ORM\OneToMany(targetEntity="Storelocation", mappedBy="parent") * @ORM\OneToMany(targetEntity="Storelocation", mappedBy="parent")
* @ORM\OrderBy({"name" = "ASC"})
*/ */
protected $children; protected $children;

View file

@ -69,6 +69,7 @@ class Supplier extends AbstractCompany
{ {
/** /**
* @ORM\OneToMany(targetEntity="Supplier", mappedBy="parent") * @ORM\OneToMany(targetEntity="Supplier", mappedBy="parent")
* @ORM\OrderBy({"name" = "ASC"})
*/ */
protected $children; protected $children;

View file

@ -78,6 +78,7 @@ class Currency extends AbstractStructuralDBElement
/** /**
* @ORM\OneToMany(targetEntity="Currency", mappedBy="parent", cascade={"persist"}) * @ORM\OneToMany(targetEntity="Currency", mappedBy="parent", cascade={"persist"})
* @ORM\OrderBy({"name" = "ASC"})
*/ */
protected $children; protected $children;

View file

@ -61,6 +61,7 @@ class Group extends AbstractStructuralDBElement implements HasPermissionsInterfa
{ {
/** /**
* @ORM\OneToMany(targetEntity="Group", mappedBy="parent") * @ORM\OneToMany(targetEntity="Group", mappedBy="parent")
* @ORM\OrderBy({"name" = "ASC"})
*/ */
protected $children; protected $children;