mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2026-04-05 20:43:42 +00:00
Resolve "Ajout d'un champ "externalId" pour les centres"
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user