fix: update RDAPService parser

This commit is contained in:
Maël Gangloff
2024-07-23 03:05:35 +02:00
parent 7c68919252
commit 1ef8a98586
5 changed files with 36 additions and 37 deletions

View File

@@ -23,7 +23,7 @@ class DomainEntity
#[Groups(['domain-entity:entity'])]
private ?Entity $entity = null;
#[ORM\Column(type: Types::SIMPLE_ARRAY, enumType: DomainRole::class)]
#[ORM\Column(type: Types::SIMPLE_ARRAY)]
#[Groups(['domain-entity:entity', 'domain-entity:domain'])]
private array $roles = [];

View File

@@ -15,9 +15,9 @@ class Event
#[ORM\Column]
private ?int $id = null;
#[ORM\Column(enumType: EventAction::class)]
#[ORM\Column(length: 255)]
#[Groups(['event:list'])]
private ?EventAction $action = null;
private ?string $action = null;
#[ORM\Column(type: 'datetime_immutable')]
#[Groups(['event:list'])]
@@ -29,12 +29,12 @@ class Event
return $this->id;
}
public function getAction(): ?EventAction
public function getAction(): ?string
{
return $this->action;
}
public function setAction(EventAction $action): static
public function setAction(string $action): static
{
$this->action = $action;

View File

@@ -24,7 +24,7 @@ class NameserverEntity
private ?Entity $entity = null;
#[ORM\Column(type: Types::SIMPLE_ARRAY, enumType: DomainRole::class)]
#[ORM\Column(type: Types::SIMPLE_ARRAY)]
#[Groups(['nameserver-entity:entity', 'nameserver-entity:nameserver'])]
private array $roles = [];

View File

@@ -12,9 +12,9 @@ use Symfony\Component\Serializer\Attribute\Groups;
class WatchListTrigger
{
#[ORM\Id]
#[ORM\Column(enumType: EventAction::class)]
#[ORM\Column(length: 255)]
#[Groups(['watchlist:item', 'watchlist:create', 'watchlist:update'])]
private ?EventAction $event = null;
private ?string $event = null;
#[ORM\Id]
#[ORM\ManyToOne(targetEntity: WatchList::class, inversedBy: 'watchListTriggers')]
@@ -26,12 +26,12 @@ class WatchListTrigger
#[Groups(['watchlist:item', 'watchlist:create', 'watchlist:update'])]
private ?TriggerAction $action = null;
public function getEvent(): ?EventAction
public function getEvent(): ?string
{
return $this->event;
}
public function setEvent(EventAction $event): static
public function setEvent(string $event): static
{
$this->event = $event;