feat: add jCard column to entity

This commit is contained in:
Maël Gangloff
2024-07-12 15:38:24 +02:00
parent 48972e5297
commit ddd18bfe49
3 changed files with 58 additions and 2 deletions

View File

@@ -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;
}
}