mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2026-04-07 21:43:43 +00:00
Add externalId to Center entity and adapt personupertHandler
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user