Resolve "Ajout d'un champ "externalId" pour les centres"

This commit is contained in:
2026-03-24 15:41:31 +00:00
committed by Boris Waaub
parent a29eb3d94d
commit 1a9f12f357
5 changed files with 67 additions and 0 deletions

View File

@@ -45,6 +45,9 @@ class Center implements HasCenterInterface, \Stringable
#[ORM\ManyToMany(targetEntity: Regroupment::class, mappedBy: 'centers')]
private Collection $regroupments;
#[ORM\Column(type: \Doctrine\DBAL\Types\Types::TEXT, options: ['default' => ''])]
private string $externalId = '';
/**
* Center constructor.
*/
@@ -124,4 +127,19 @@ class Center implements HasCenterInterface, \Stringable
return $this;
}
public function getExternalId(): string
{
return $this->externalId;
}
public function setExternalId(string $externalId): void
{
$this->externalId = $externalId;
}
public function hasExternalId(): bool
{
return '' !== $this->externalId;
}
}