mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-20 17:15:51 +02:00
Fixed exception on label profile admin, if the label profile had an preview attachment
This commit is contained in:
parent
0a7a7c979c
commit
47ddcca065
1 changed files with 1 additions and 1 deletions
|
@ -70,7 +70,7 @@ class LabelProfile extends AttachmentContainingDBElement
|
|||
#[ORM\OrderBy(['name' => 'ASC'])]
|
||||
protected Collection $attachments;
|
||||
|
||||
#[ORM\ManyToOne(targetEntity: AttachmentTypeAttachment::class)]
|
||||
#[ORM\ManyToOne(targetEntity: LabelAttachment::class)]
|
||||
#[ORM\JoinColumn(name: 'id_preview_attachment', onDelete: 'SET NULL')]
|
||||
protected ?Attachment $master_picture_attachment = null;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue