feat: update database relation

This commit is contained in:
Maël Gangloff
2024-07-11 17:01:16 +02:00
parent 2c535f754b
commit 270ffc5cb9
16 changed files with 708 additions and 51 deletions

View File

@@ -22,13 +22,13 @@ class User implements UserInterface, PasswordAuthenticatedUserInterface
private ?string $email = null;
/**
* @var list<string> The user roles
* @var array The user roles
*/
#[ORM\Column]
private array $roles = [];
/**
* @var string The hashed password
* @var string|null The hashed password
*/
#[ORM\Column]
private ?string $password = null;
@@ -86,7 +86,8 @@ class User implements UserInterface, PasswordAuthenticatedUserInterface
}
/**
* @param list<string> $roles
* @param array $roles
* @return User
*/
public function setRoles(array $roles): static
{