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:
Kendrick Chan 2021-10-12 08:06:11 +00:00
commit 94f2cc75a7

View file

@ -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;