diff --git a/src/Entity/Attachments/AttachmentType.php b/src/Entity/Attachments/AttachmentType.php index 4432309b..6dcabe13 100644 --- a/src/Entity/Attachments/AttachmentType.php +++ b/src/Entity/Attachments/AttachmentType.php @@ -59,7 +59,7 @@ class AttachmentType extends AbstractStructuralDBElement /** * @var Collection * @ORM\OneToMany(targetEntity="App\Entity\Attachments\AttachmentTypeAttachment", mappedBy="element", cascade={"persist", "remove"}, orphanRemoval=true) - * @ORM\OrderBy({"attachment_type" = "ASC", "name" = "ASC"}) + * @ORM\OrderBy({"name" = "ASC"}) * @Assert\Valid() */ protected $attachments; diff --git a/src/Entity/Devices/Device.php b/src/Entity/Devices/Device.php index 76bfaa6a..0fd16306 100644 --- a/src/Entity/Devices/Device.php +++ b/src/Entity/Devices/Device.php @@ -96,7 +96,7 @@ class Device extends AbstractPartsContainingDBElement /** * @var Collection * @ORM\OneToMany(targetEntity="App\Entity\Attachments\DeviceAttachment", mappedBy="element", cascade={"persist", "remove"}, orphanRemoval=true) - * @ORM\OrderBy({"attachment_type" = "ASC", "name" = "ASC"}) + * @ORM\OrderBy({"name" = "ASC"}) */ protected $attachments; diff --git a/src/Entity/Parts/Category.php b/src/Entity/Parts/Category.php index 1797738a..520736e9 100644 --- a/src/Entity/Parts/Category.php +++ b/src/Entity/Parts/Category.php @@ -104,7 +104,7 @@ class Category extends AbstractPartsContainingDBElement /** * @var Collection * @ORM\OneToMany(targetEntity="App\Entity\Attachments\CategoryAttachment", mappedBy="element", cascade={"persist", "remove"}, orphanRemoval=true) - * @ORM\OrderBy({"attachment_type" = "ASC", "name" = "ASC"}) + * @ORM\OrderBy({"name" = "ASC"}) * @Assert\Valid() */ protected $attachments; diff --git a/src/Entity/Parts/Footprint.php b/src/Entity/Parts/Footprint.php index e3e703b7..b5f3fa42 100644 --- a/src/Entity/Parts/Footprint.php +++ b/src/Entity/Parts/Footprint.php @@ -84,7 +84,7 @@ class Footprint extends AbstractPartsContainingDBElement /** * @var Collection * @ORM\OneToMany(targetEntity="App\Entity\Attachments\FootprintAttachment", mappedBy="element", cascade={"persist", "remove"}, orphanRemoval=true) - * @ORM\OrderBy({"attachment_type" = "ASC", "name" = "ASC"}) + * @ORM\OrderBy({"name" = "ASC"}) * @Assert\Valid() */ protected $attachments; @@ -98,7 +98,7 @@ class Footprint extends AbstractPartsContainingDBElement /** @var Collection * @ORM\OneToMany(targetEntity="App\Entity\Parameters\FootprintParameter", mappedBy="element", cascade={"persist", "remove"}, orphanRemoval=true) - * @ORM\OrderBy({"group" = "ASC" ,"name" = "ASC"})@ORM\OrderBy({"group" = "ASC" ,"name" = "ASC"}) + * @ORM\OrderBy({"group" = "ASC" ,"name" = "ASC"}) * @Assert\Valid() */ protected $parameters; diff --git a/src/Entity/Parts/Manufacturer.php b/src/Entity/Parts/Manufacturer.php index ad8c2536..2b0779f4 100644 --- a/src/Entity/Parts/Manufacturer.php +++ b/src/Entity/Parts/Manufacturer.php @@ -84,7 +84,7 @@ class Manufacturer extends AbstractCompany /** * @var Collection * @ORM\OneToMany(targetEntity="App\Entity\Attachments\ManufacturerAttachment", mappedBy="element", cascade={"persist", "remove"}, orphanRemoval=true) - * @ORM\OrderBy({"attachment_type" = "ASC", "name" = "ASC"}) + * @ORM\OrderBy({"name" = "ASC"}) * @Assert\Valid() */ protected $attachments; diff --git a/src/Entity/Parts/MeasurementUnit.php b/src/Entity/Parts/MeasurementUnit.php index 1136fb35..406b113a 100644 --- a/src/Entity/Parts/MeasurementUnit.php +++ b/src/Entity/Parts/MeasurementUnit.php @@ -101,7 +101,7 @@ class MeasurementUnit extends AbstractPartsContainingDBElement /** * @var Collection * @ORM\OneToMany(targetEntity="App\Entity\Attachments\MeasurementUnitAttachment", mappedBy="element", cascade={"persist", "remove"}, orphanRemoval=true) - * @ORM\OrderBy({"attachment_type" = "ASC", "name" = "ASC"}) + * @ORM\OrderBy({"name" = "ASC"}) * @Assert\Valid() */ protected $attachments; diff --git a/src/Entity/Parts/Part.php b/src/Entity/Parts/Part.php index 02a23472..3bfc3195 100644 --- a/src/Entity/Parts/Part.php +++ b/src/Entity/Parts/Part.php @@ -121,7 +121,7 @@ class Part extends AttachmentContainingDBElement * @var Collection * @ORM\OneToMany(targetEntity="App\Entity\Attachments\PartAttachment", mappedBy="element", cascade={"persist", "remove"}, orphanRemoval=true) * @ColumnSecurity(type="collection", prefix="attachments") - * @ORM\OrderBy({"attachment_type" = "ASC", "name" = "ASC"}) + * @ORM\OrderBy({"name" = "ASC"}) * @Assert\Valid() */ protected $attachments; diff --git a/src/Entity/Parts/PartTraits/OrderTrait.php b/src/Entity/Parts/PartTraits/OrderTrait.php index d5f7237f..60c23056 100644 --- a/src/Entity/Parts/PartTraits/OrderTrait.php +++ b/src/Entity/Parts/PartTraits/OrderTrait.php @@ -58,7 +58,7 @@ trait OrderTrait * @ORM\OneToMany(targetEntity="App\Entity\PriceInformations\Orderdetail", mappedBy="part", cascade={"persist", "remove"}, orphanRemoval=true) * @Assert\Valid() * @ColumnSecurity(prefix="orderdetails", type="collection") - * @ORM\OrderBy({"supplier" = "ASC", "supplierpartnr" = "ASC"}) + * @ORM\OrderBy({"supplierpartnr" = "ASC"}) */ protected $orderdetails; diff --git a/src/Entity/Parts/Storelocation.php b/src/Entity/Parts/Storelocation.php index 6e018d80..c47a14ff 100644 --- a/src/Entity/Parts/Storelocation.php +++ b/src/Entity/Parts/Storelocation.php @@ -95,7 +95,6 @@ class Storelocation extends AbstractPartsContainingDBElement /** @var Collection * @ORM\OneToMany(targetEntity="App\Entity\Parameters\StorelocationParameter", mappedBy="element", cascade={"persist", "remove"}, orphanRemoval=true) - * @ORM\OrderBy({"attachment_type" = "ASC", "name" = "ASC"}) * @ORM\OrderBy({"group" = "ASC" ,"name" = "ASC"}) * @Assert\Valid() */ diff --git a/src/Entity/Parts/Supplier.php b/src/Entity/Parts/Supplier.php index 69814b93..e9597008 100644 --- a/src/Entity/Parts/Supplier.php +++ b/src/Entity/Parts/Supplier.php @@ -112,7 +112,7 @@ class Supplier extends AbstractCompany /** * @var Collection * @ORM\OneToMany(targetEntity="App\Entity\Attachments\SupplierAttachment", mappedBy="element", cascade={"persist", "remove"}, orphanRemoval=true) - * @ORM\OrderBy({"attachment_type" = "ASC", "name" = "ASC"}) + * @ORM\OrderBy({"name" = "ASC"}) * @Assert\Valid() */ protected $attachments; diff --git a/src/Entity/PriceInformations/Currency.php b/src/Entity/PriceInformations/Currency.php index 322c8173..1441cb47 100644 --- a/src/Entity/PriceInformations/Currency.php +++ b/src/Entity/PriceInformations/Currency.php @@ -91,7 +91,7 @@ class Currency extends AbstractStructuralDBElement /** * @var Collection * @ORM\OneToMany(targetEntity="App\Entity\Attachments\CurrencyAttachment", mappedBy="element", cascade={"persist", "remove"}, orphanRemoval=true) - * @ORM\OrderBy({"attachment_type" = "ASC", "name" = "ASC"}) + * @ORM\OrderBy({"name" = "ASC"}) * @Assert\Valid() */ protected $attachments; diff --git a/src/Entity/UserSystem/Group.php b/src/Entity/UserSystem/Group.php index f9362b19..bb62d16f 100644 --- a/src/Entity/UserSystem/Group.php +++ b/src/Entity/UserSystem/Group.php @@ -84,7 +84,7 @@ class Group extends AbstractStructuralDBElement implements HasPermissionsInterfa /** * @var Collection * @ORM\OneToMany(targetEntity="App\Entity\Attachments\ManufacturerAttachment", mappedBy="element", cascade={"persist", "remove"}, orphanRemoval=true) - * @ORM\OrderBy({"attachment_type" = "ASC", "name" = "ASC"}) + * @ORM\OrderBy({"name" = "ASC"}) * @Assert\Valid() */ protected $attachments; diff --git a/src/Entity/UserSystem/User.php b/src/Entity/UserSystem/User.php index e7b35ada..f39f5078 100644 --- a/src/Entity/UserSystem/User.php +++ b/src/Entity/UserSystem/User.php @@ -229,7 +229,7 @@ class User extends AttachmentContainingDBElement implements UserInterface, HasPe /** * @var Collection * @ORM\OneToMany(targetEntity="App\Entity\Attachments\UserAttachment", mappedBy="element", cascade={"persist", "remove"}, orphanRemoval=true) - * @ORM\OrderBy({"attachment_type" = "ASC", "name" = "ASC"}) + * @ORM\OrderBy({"name" = "ASC"}) */ protected $attachments;