fix: update table scheme

This commit is contained in:
Maël Gangloff
2024-07-13 15:52:52 +02:00
parent 5faa6489b1
commit 69dc301257
9 changed files with 71 additions and 96 deletions

View File

@@ -10,10 +10,19 @@ use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: EntityRepository::class)]
class Entity
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column(length: 255)]
private ?string $handle = null;
#[ORM\Column(length: 255)]
private ?string $tld = null;
/**
* @var Collection<int, DomainEntity>
*/
@@ -42,6 +51,11 @@ class Entity
$this->events = new ArrayCollection();
}
public function getId(): ?int
{
return $this->id;
}
public function getHandle(): ?string
{
return $this->handle;
@@ -54,6 +68,18 @@ class Entity
return $this;
}
public function getTld(): ?string
{
return $this->tld;
}
public function setTld(string $tld): static
{
$this->tld = $tld;
return $this;
}
/**
* @return Collection<int, DomainEntity>
*/