fix: make migration

This commit is contained in:
Maël Gangloff
2024-07-29 11:37:52 +02:00
parent ad5a67b172
commit 06182dc236
3 changed files with 59 additions and 1 deletions

View File

@@ -25,6 +25,9 @@ class WatchListTrigger
#[Groups(['watchlist:list', 'watchlist:item', 'watchlist:create', 'watchlist:update'])]
private ?TriggerAction $action = null;
#[ORM\ManyToOne(inversedBy: 'watchListTriggers')]
private ?Connector $connector = null;
public function getEvent(): ?string
{
return $this->event;
@@ -60,4 +63,16 @@ class WatchListTrigger
return $this;
}
public function getConnector(): ?Connector
{
return $this->connector;
}
public function setConnector(?Connector $connector): static
{
$this->connector = $connector;
return $this;
}
}