|
@@ -39,6 +39,9 @@ class Person implements UserInterface, PasswordAuthenticatedUserInterface
|
|
|
#[ORM\Column(length: 180, unique: true, nullable: true)]
|
|
#[ORM\Column(length: 180, unique: true, nullable: true)]
|
|
|
private ?string $username = null;
|
|
private ?string $username = null;
|
|
|
|
|
|
|
|
|
|
+ #[ORM\Column(length: 180, unique: true, nullable: true)]
|
|
|
|
|
+ private ?string $usernameCanonical = null;
|
|
|
|
|
+
|
|
|
/** @var string[]|null */
|
|
/** @var string[]|null */
|
|
|
private ?array $roles = [];
|
|
private ?array $roles = [];
|
|
|
|
|
|
|
@@ -134,6 +137,17 @@ class Person implements UserInterface, PasswordAuthenticatedUserInterface
|
|
|
return (string) $this->username;
|
|
return (string) $this->username;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ public function getUsernameCanonical(): ?string
|
|
|
|
|
+ {
|
|
|
|
|
+ return $this->usernameCanonical;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ public function setUsernameCanonical(?string $usernameCanonical): self
|
|
|
|
|
+ {
|
|
|
|
|
+ $this->usernameCanonical = $usernameCanonical;
|
|
|
|
|
+ return $this;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
public function setUsername(?string $username): self
|
|
public function setUsername(?string $username): self
|
|
|
{
|
|
{
|
|
|
$this->username = $username;
|
|
$this->username = $username;
|