From 21cb12303f3ee772d2863cf54c963b0061fed2fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20B=C3=B6hmer?= Date: Sat, 31 Aug 2019 12:07:16 +0200 Subject: [PATCH] Order the pricedetails by the min quantity --- src/Entity/PriceInformations/Orderdetail.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Entity/PriceInformations/Orderdetail.php b/src/Entity/PriceInformations/Orderdetail.php index 733105c2..4045277d 100644 --- a/src/Entity/PriceInformations/Orderdetail.php +++ b/src/Entity/PriceInformations/Orderdetail.php @@ -102,6 +102,7 @@ class Orderdetail extends DBElement /** * @ORM\OneToMany(targetEntity="Pricedetail", mappedBy="orderdetail", cascade={"persist", "remove"}, orphanRemoval=true) * @Assert\Valid() + * @ORM\OrderBy({"min_discount_quantity" = "ASC"}) */ protected $pricedetails;