This commit is contained in:
marvin
2024-11-19 09:05:38 +01:00
parent d03ad9d556
commit e99b5e0f44
2 changed files with 12 additions and 24 deletions

View File

@@ -41,8 +41,8 @@ class Participant
#[ORM\Column]
private ?string $password = null;
#[ORM\ManyToOne(inversedBy: 'participants')]
#[ORM\JoinColumn(nullable: false)]
#[ORM\ManyToOne(targetEntity: Site::class, inversedBy: 'participants')]
#[ORM\JoinColumn(name: 'site_id', referencedColumnName: 'idSite', nullable: false)]
private ?Site $site = null;
/**