Order attachments and part lots by a reasonable parameter.

This commit is contained in:
Jan Böhmer 2020-04-01 15:37:06 +02:00
parent f0a3e9b5af
commit a4802e290f
14 changed files with 15 additions and 0 deletions

View file

@ -95,6 +95,7 @@ class Device extends AbstractPartsContainingDBElement
/**
* @var Collection<int, DeviceAttachment>
* @ORM\OneToMany(targetEntity="App\Entity\Attachments\DeviceAttachment", mappedBy="element", cascade={"persist", "remove"}, orphanRemoval=true)
* @ORM\OrderBy({"attachment_type" = "ASC", "name" = "ASC"})
*/
protected $attachments;