Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Pasteque
pasteque-server
Commits
6a124edc
Commit
6a124edc
authored
Jan 23, 2020
by
Karamel
Browse files
Order payment mode values and returns by descending value.
parent
91eb9e8a
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lib/Model/PaymentMode.php
View file @
6a124edc
...
...
@@ -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
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment