mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-23 18:28:49 +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
|
@ -229,6 +229,7 @@ class User extends AttachmentContainingDBElement implements UserInterface, HasPe
|
|||
/**
|
||||
* @var Collection<int, UserAttachment>
|
||||
* @ORM\OneToMany(targetEntity="App\Entity\Attachments\UserAttachment", mappedBy="element", cascade={"persist", "remove"}, orphanRemoval=true)
|
||||
* @ORM\OrderBy({"attachment_type" = "ASC", "name" = "ASC"})
|
||||
*/
|
||||
protected $attachments;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue