mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-12 11:24:31 +02:00
Order attachments and part lots by a reasonable parameter.
This commit is contained in:
parent
f0a3e9b5af
commit
a4802e290f
14 changed files with 15 additions and 0 deletions
|
@ -57,6 +57,7 @@ trait InstockTrait
|
|||
* @ORM\OneToMany(targetEntity="PartLot", mappedBy="part", cascade={"persist", "remove"}, orphanRemoval=true)
|
||||
* @Assert\Valid()
|
||||
* @ColumnSecurity(type="collection", prefix="lots")
|
||||
* @ORM\OrderBy({"amount" = "DESC"})
|
||||
*/
|
||||
protected $partLots;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue