mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-22 09:53:35 +02:00
Use ManyToOne instead of OneToOne for master_picture_attachment like before
This commit is contained in:
parent
c0f626e9bd
commit
2e8cb35acc
12 changed files with 12 additions and 12 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue