Add externalId to Center entity and adapt personupertHandler

This commit is contained in:
Boris Waaub
2026-03-25 11:21:41 +01:00
parent bd4c5adfa6
commit 222777f88c
3 changed files with 100 additions and 6 deletions

View File

@@ -39,6 +39,9 @@ class Center implements HasCenterInterface, \Stringable
#[ORM\Column(type: \Doctrine\DBAL\Types\Types::BOOLEAN, options: ['default' => true])]
private bool $isActive = true;
#[ORM\Column(type: \Doctrine\DBAL\Types\Types::STRING, unique: true, nullable: true)]
private ?string $externalId = null;
/**
* @var Collection<int, Regroupment>
*/
@@ -124,4 +127,16 @@ class Center implements HasCenterInterface, \Stringable
return $this;
}
public function getExternalId(): ?string
{
return $this->externalId;
}
public function setExternalId(?string $externalId): self
{
$this->externalId = $externalId;
return $this;
}
}