Fixed exception on label profile admin, if the label profile had an preview attachment

This commit is contained in:
Jan Böhmer 2024-02-06 21:59:53 +01:00
parent 0a7a7c979c
commit 47ddcca065

View file

@ -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;