mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-03-03 14:06:45 +01:00
Use ManyToOne instead of OneToOne for master_picture_attachment like before
This commit is contained in:
@@ -95,7 +95,7 @@ class Project extends AbstractStructuralDBElement
|
||||
#[ORM\OrderBy(['name' => 'ASC'])]
|
||||
protected Collection $attachments;
|
||||
|
||||
#[ORM\OneToOne(targetEntity: ProjectAttachment::class)]
|
||||
#[ORM\ManyToOne(targetEntity: ProjectAttachment::class)]
|
||||
#[ORM\JoinColumn(name: 'id_preview_attachment', onDelete: 'SET NULL')]
|
||||
protected ?Attachment $master_picture_attachment = null;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user