fix: update table scheme

This commit is contained in:
Maël Gangloff
2024-07-11 02:29:08 +02:00
parent 9cc575ff09
commit fbb14df399
14 changed files with 711 additions and 56 deletions

View File

@@ -11,18 +11,18 @@ class NameserverEntity
{
#[ORM\Id]
#[ORM\ManyToOne(inversedBy: 'nameserverEntities')]
#[ORM\JoinColumn(nullable: false, referencedColumnName: 'handle')]
#[ORM\JoinColumn(referencedColumnName: 'handle', nullable: false)]
private ?Nameserver $nameserver = null;
#[ORM\Id]
#[ORM\ManyToOne(inversedBy: 'nameserverEntities')]
#[ORM\JoinColumn(nullable: false, referencedColumnName: 'handle')]
#[ORM\JoinColumn(referencedColumnName: 'handle', nullable: false)]
private ?Entity $entity = null;
#[ORM\Column(type: Types::ARRAY)]
#[ORM\Column(type: Types::SIMPLE_ARRAY)]
private array $roles = [];
#[ORM\Column(type: Types::ARRAY)]
#[ORM\Column(type: Types::SIMPLE_ARRAY)]
private array $status = [];
public function getNameserver(): ?Nameserver