mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-03-25 08:37:23 +01:00
Added possibility to add/edit attachments on Admin pages.
This commit is contained in:
@@ -78,7 +78,7 @@ class Device extends PartsContainingDBElement
|
||||
|
||||
/**
|
||||
* @var Collection|DeviceAttachment[]
|
||||
* @ORM\OneToMany(targetEntity="App\Entity\Attachments\DeviceAttachment", mappedBy="element")
|
||||
* @ORM\OneToMany(targetEntity="App\Entity\Attachments\DeviceAttachment", mappedBy="element", cascade={"persist", "remove"}, orphanRemoval=true)
|
||||
*/
|
||||
protected $attachments;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user