Commit 2f9576b8 authored by Karamel's avatar Karamel
Browse files

Fix payments order in tickets.

parent 938d7c4a
......@@ -162,6 +162,7 @@ class Ticket extends DoctrineModel
* @var \Pasteque\Ticket[]
* @SWG\Property()
* @OneToMany(targetEntity="\Pasteque\Server\Model\TicketLine", mappedBy="ticket", cascade={"persist"}, orphanRemoval=true)
* @OrderBy({"dispOrder" = "ASC"})
*/
protected $lines;
public function getLines() { return $this->lines; }
......@@ -215,6 +216,7 @@ class Ticket extends DoctrineModel
* @var \Pasteque\Payment[]
* @SWG\Property()
* @OneToMany(targetEntity="\Pasteque\Server\Model\TicketPayment", mappedBy="ticket", cascade={"persist"}, orphanRemoval=true)
* @OrderBy({"dispOrder" = "ASC"})
*/
protected $payments;
public function getPayments() { return $this->payments; }
......
Supports Markdown
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