Merge branch '628-sort-the-compatible-batteries-by-price-descending' into 'master-fix'
Resolve "Sort the compatible batteries by price descending" See merge request jankstudio/resq!741
This commit is contained in:
commit
94f2cc75a7
1 changed files with 1 additions and 0 deletions
|
|
@ -56,6 +56,7 @@ class Vehicle
|
|||
// link to batteries compatible with this vehicle
|
||||
/**
|
||||
* @ORM\ManyToMany(targetEntity="Battery", mappedBy="vehicles", indexBy="id", fetch="EXTRA_LAZY")
|
||||
* @ORM\OrderBy({"sell_price" = "DESC"})
|
||||
*/
|
||||
protected $batteries;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue