feat: update database relation

This commit is contained in:
Maël Gangloff
2024-07-11 17:01:16 +02:00
parent 2c535f754b
commit 270ffc5cb9
16 changed files with 708 additions and 51 deletions

View File

@@ -12,12 +12,12 @@ use Doctrine\ORM\Mapping as ORM;
class NameserverEntity
{
#[ORM\Id]
#[ORM\ManyToOne(inversedBy: 'nameserverEntities')]
#[ORM\ManyToOne(targetEntity: Nameserver::class, inversedBy: 'nameserverEntities')]
#[ORM\JoinColumn(referencedColumnName: 'handle', nullable: false)]
private ?Nameserver $nameserver = null;
#[ORM\Id]
#[ORM\ManyToOne(inversedBy: 'nameserverEntities')]
#[ORM\ManyToOne(targetEntity: Entity::class, inversedBy: 'nameserverEntities')]
#[ORM\JoinColumn(referencedColumnName: 'handle', nullable: false)]
private ?Entity $entity = null;