diff --git a/src/Entity/UserApp.php b/src/Entity/UserApp.php index 7dabaa2..8c00353 100644 --- a/src/Entity/UserApp.php +++ b/src/Entity/UserApp.php @@ -28,8 +28,8 @@ class UserApp implements UserInterface, PasswordAuthenticatedUserInterface /** * @var list The user roles */ - #[ORM\Column] - private array $roles = []; + #[ORM\Column(nullable: true)] + private ?array $roles = null; /** * @var string The hashed password