mirror of
https://github.com/maelgangloff/domain-watchdog.git
synced 2025-12-29 16:15:04 +00:00
feat: add jCard column to entity
This commit is contained in:
@@ -32,6 +32,9 @@ class Entity
|
||||
#[ORM\OneToMany(targetEntity: EntityEvent::class, mappedBy: 'entity', cascade: ['persist'], orphanRemoval: true)]
|
||||
private Collection $events;
|
||||
|
||||
#[ORM\Column]
|
||||
private array $jCard = [];
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
$this->domainEntities = new ArrayCollection();
|
||||
@@ -141,4 +144,16 @@ class Entity
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getJCard(): array
|
||||
{
|
||||
return $this->jCard;
|
||||
}
|
||||
|
||||
public function setJCard(array $jCard): static
|
||||
{
|
||||
$this->jCard = $jCard;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user