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