fix: update table scheme

This commit is contained in:
Maël Gangloff
2024-07-12 00:50:30 +02:00
parent a691659cca
commit d0c0c5beb3
7 changed files with 23 additions and 24 deletions

View File

@@ -11,12 +11,12 @@ use Doctrine\ORM\Mapping as ORM;
class DomainEntity
{
#[ORM\Id]
#[ORM\ManyToOne(targetEntity: Domain::class, inversedBy: 'domainEntities')]
#[ORM\ManyToOne(targetEntity: Domain::class, cascade: ['persist'], inversedBy: 'domainEntities')]
#[ORM\JoinColumn(referencedColumnName: 'handle', nullable: false)]
private ?Domain $domain = null;
#[ORM\Id]
#[ORM\ManyToOne(targetEntity: Entity::class, inversedBy: 'domainEntities')]
#[ORM\ManyToOne(targetEntity: Entity::class, cascade: ['persist'], inversedBy: 'domainEntities')]
#[ORM\JoinColumn(referencedColumnName: 'handle', nullable: false)]
private ?Entity $entity = null;