fix: update table scheme

This commit is contained in:
Maël Gangloff
2024-07-13 12:49:11 +02:00
parent 4b062a6759
commit 5faa6489b1
8 changed files with 68 additions and 15 deletions

View File

@@ -9,7 +9,7 @@ use Doctrine\ORM\Mapping as ORM;
class DomainEvent extends Event
{
#[ORM\ManyToOne(targetEntity: Domain::class, cascade: ['persist'], inversedBy: 'events')]
#[ORM\JoinColumn(referencedColumnName: 'handle', nullable: false)]
#[ORM\JoinColumn(referencedColumnName: 'ldh_name', nullable: false)]
private ?Domain $domain = null;
public function getDomain(): ?Domain