mirror of
https://github.com/maelgangloff/domain-watchdog.git
synced 2025-12-29 16:15:04 +00:00
fix: update table joins
This commit is contained in:
@@ -12,10 +12,6 @@ use Doctrine\ORM\Mapping as ORM;
|
|||||||
class Domain
|
class Domain
|
||||||
{
|
{
|
||||||
#[ORM\Id]
|
#[ORM\Id]
|
||||||
#[ORM\GeneratedValue]
|
|
||||||
#[ORM\Column]
|
|
||||||
private ?int $id = null;
|
|
||||||
|
|
||||||
#[ORM\Column(length: 255)]
|
#[ORM\Column(length: 255)]
|
||||||
private ?string $ldhname = null;
|
private ?string $ldhname = null;
|
||||||
|
|
||||||
@@ -46,11 +42,6 @@ class Domain
|
|||||||
$this->domainEntities = new ArrayCollection();
|
$this->domainEntities = new ArrayCollection();
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getId(): ?int
|
|
||||||
{
|
|
||||||
return $this->id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function getLdhname(): ?string
|
public function getLdhname(): ?string
|
||||||
{
|
{
|
||||||
return $this->ldhname;
|
return $this->ldhname;
|
||||||
|
|||||||
@@ -9,26 +9,18 @@ use Doctrine\ORM\Mapping as ORM;
|
|||||||
class DomainEntity
|
class DomainEntity
|
||||||
{
|
{
|
||||||
#[ORM\Id]
|
#[ORM\Id]
|
||||||
#[ORM\GeneratedValue]
|
|
||||||
#[ORM\Column]
|
|
||||||
private ?int $id = null;
|
|
||||||
|
|
||||||
#[ORM\ManyToOne(inversedBy: 'domainEntities')]
|
#[ORM\ManyToOne(inversedBy: 'domainEntities')]
|
||||||
#[ORM\JoinColumn(nullable: false)]
|
#[ORM\JoinColumn(nullable: false, referencedColumnName: 'ldhname')]
|
||||||
private ?Domain $domain = null;
|
private ?Domain $domain = null;
|
||||||
|
|
||||||
|
#[ORM\Id]
|
||||||
#[ORM\ManyToOne(inversedBy: 'domainEntities')]
|
#[ORM\ManyToOne(inversedBy: 'domainEntities')]
|
||||||
#[ORM\JoinColumn(nullable: false)]
|
#[ORM\JoinColumn(nullable: false, referencedColumnName: 'handle')]
|
||||||
private ?Entity $entity = null;
|
private ?Entity $entity = null;
|
||||||
|
|
||||||
#[ORM\Column(length: 255)]
|
#[ORM\Column(length: 255)]
|
||||||
private ?string $roles = null;
|
private ?string $roles = null;
|
||||||
|
|
||||||
public function getId(): ?int
|
|
||||||
{
|
|
||||||
return $this->id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function getDomain(): ?Domain
|
public function getDomain(): ?Domain
|
||||||
{
|
{
|
||||||
return $this->domain;
|
return $this->domain;
|
||||||
|
|||||||
@@ -11,10 +11,6 @@ use Doctrine\ORM\Mapping as ORM;
|
|||||||
class Entity
|
class Entity
|
||||||
{
|
{
|
||||||
#[ORM\Id]
|
#[ORM\Id]
|
||||||
#[ORM\GeneratedValue]
|
|
||||||
#[ORM\Column]
|
|
||||||
private ?int $id = null;
|
|
||||||
|
|
||||||
#[ORM\Column(length: 255)]
|
#[ORM\Column(length: 255)]
|
||||||
private ?string $handle = null;
|
private ?string $handle = null;
|
||||||
|
|
||||||
@@ -36,11 +32,6 @@ class Entity
|
|||||||
$this->nameserverEntities = new ArrayCollection();
|
$this->nameserverEntities = new ArrayCollection();
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getId(): ?int
|
|
||||||
{
|
|
||||||
return $this->id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function getHandle(): ?string
|
public function getHandle(): ?string
|
||||||
{
|
{
|
||||||
return $this->handle;
|
return $this->handle;
|
||||||
|
|||||||
@@ -10,25 +10,17 @@ use Doctrine\ORM\Mapping as ORM;
|
|||||||
class Event
|
class Event
|
||||||
{
|
{
|
||||||
#[ORM\Id]
|
#[ORM\Id]
|
||||||
#[ORM\GeneratedValue]
|
|
||||||
#[ORM\Column]
|
|
||||||
private ?int $id = null;
|
|
||||||
|
|
||||||
#[ORM\Column(length: 255)]
|
#[ORM\Column(length: 255)]
|
||||||
private ?string $action = null;
|
private ?string $action = null;
|
||||||
|
|
||||||
#[ORM\Column(type: Types::DATE_IMMUTABLE)]
|
#[ORM\Column(type: Types::DATE_IMMUTABLE)]
|
||||||
private ?\DateTimeImmutable $date = null;
|
private ?\DateTimeImmutable $date = null;
|
||||||
|
|
||||||
|
#[ORM\Id]
|
||||||
#[ORM\ManyToOne(inversedBy: 'events')]
|
#[ORM\ManyToOne(inversedBy: 'events')]
|
||||||
#[ORM\JoinColumn(nullable: false)]
|
#[ORM\JoinColumn(nullable: false, referencedColumnName: 'ldhname')]
|
||||||
private ?Domain $domain = null;
|
private ?Domain $domain = null;
|
||||||
|
|
||||||
public function getId(): ?int
|
|
||||||
{
|
|
||||||
return $this->id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function getAction(): ?string
|
public function getAction(): ?string
|
||||||
{
|
{
|
||||||
return $this->action;
|
return $this->action;
|
||||||
|
|||||||
@@ -12,10 +12,6 @@ use Doctrine\ORM\Mapping as ORM;
|
|||||||
class Nameserver
|
class Nameserver
|
||||||
{
|
{
|
||||||
#[ORM\Id]
|
#[ORM\Id]
|
||||||
#[ORM\GeneratedValue]
|
|
||||||
#[ORM\Column]
|
|
||||||
private ?int $id = null;
|
|
||||||
|
|
||||||
#[ORM\Column(length: 255)]
|
#[ORM\Column(length: 255)]
|
||||||
private ?string $handle = null;
|
private ?string $handle = null;
|
||||||
|
|
||||||
@@ -36,11 +32,6 @@ class Nameserver
|
|||||||
$this->nameserverEntities = new ArrayCollection();
|
$this->nameserverEntities = new ArrayCollection();
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getId(): ?int
|
|
||||||
{
|
|
||||||
return $this->id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function getHandle(): ?string
|
public function getHandle(): ?string
|
||||||
{
|
{
|
||||||
return $this->handle;
|
return $this->handle;
|
||||||
|
|||||||
@@ -10,16 +10,13 @@ use Doctrine\ORM\Mapping as ORM;
|
|||||||
class NameserverEntity
|
class NameserverEntity
|
||||||
{
|
{
|
||||||
#[ORM\Id]
|
#[ORM\Id]
|
||||||
#[ORM\GeneratedValue]
|
|
||||||
#[ORM\Column]
|
|
||||||
private ?int $id = null;
|
|
||||||
|
|
||||||
#[ORM\ManyToOne(inversedBy: 'nameserverEntities')]
|
#[ORM\ManyToOne(inversedBy: 'nameserverEntities')]
|
||||||
#[ORM\JoinColumn(nullable: false)]
|
#[ORM\JoinColumn(nullable: false, referencedColumnName: 'handle')]
|
||||||
private ?Nameserver $nameserver = null;
|
private ?Nameserver $nameserver = null;
|
||||||
|
|
||||||
|
#[ORM\Id]
|
||||||
#[ORM\ManyToOne(inversedBy: 'nameserverEntities')]
|
#[ORM\ManyToOne(inversedBy: 'nameserverEntities')]
|
||||||
#[ORM\JoinColumn(nullable: false)]
|
#[ORM\JoinColumn(nullable: false, referencedColumnName: 'handle')]
|
||||||
private ?Entity $entity = null;
|
private ?Entity $entity = null;
|
||||||
|
|
||||||
#[ORM\Column(type: Types::ARRAY)]
|
#[ORM\Column(type: Types::ARRAY)]
|
||||||
@@ -28,11 +25,6 @@ class NameserverEntity
|
|||||||
#[ORM\Column(type: Types::ARRAY)]
|
#[ORM\Column(type: Types::ARRAY)]
|
||||||
private array $status = [];
|
private array $status = [];
|
||||||
|
|
||||||
public function getId(): ?int
|
|
||||||
{
|
|
||||||
return $this->id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function getNameserver(): ?Nameserver
|
public function getNameserver(): ?Nameserver
|
||||||
{
|
{
|
||||||
return $this->nameserver;
|
return $this->nameserver;
|
||||||
|
|||||||
Reference in New Issue
Block a user