Commit 6a124edc authored by Karamel's avatar Karamel

Order payment mode values and returns by descending value.

parent 91eb9e8a
......@@ -132,7 +132,10 @@ class PaymentMode extends DoctrineModel
}
/**
* @OneToMany(targetEntity="\Pasteque\Server\Model\PaymentModeValue", mappedBy="paymentMode", cascade={"persist"}, orphanRemoval=true) */
* @OneToMany(targetEntity="\Pasteque\Server\Model\PaymentModeValue", mappedBy="paymentMode", cascade={"persist"}, orphanRemoval=true)
* @OrderBy({"value" = "DESC"})
*/
protected $values;
public function getValues() { return $this->values; }
public function setValues($values) {
......@@ -154,7 +157,9 @@ class PaymentMode extends DoctrineModel
}
/**
* @OneToMany(targetEntity="\Pasteque\Server\Model\PaymentModeReturn", mappedBy="paymentMode", cascade={"persist"}, orphanRemoval=true) */
* @OneToMany(targetEntity="\Pasteque\Server\Model\PaymentModeReturn", mappedBy="paymentMode", cascade={"persist"}, orphanRemoval=true)
* @OrderBy({"minAmount" = "DESC"})
*/
protected $returns;
public function getReturns() { return $this->returns; }
public function setReturns($returns) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment