File tree Expand file tree Collapse file tree 1 file changed +7
-18
lines changed Expand file tree Collapse file tree 1 file changed +7
-18
lines changed Original file line number Diff line number Diff line change @@ -125,32 +125,21 @@ from the `MakerBundle`_:
125
125
use Symfony\Component\Security\Core\User\PasswordAuthenticatedUserInterface;
126
126
use Symfony\Component\Security\Core\User\UserInterface;
127
127
128
- /**
129
- * @ORM\Entity(repositoryClass=UserRepository::class)
130
- */
128
+ #[ORM\Entity(repositoryClass: UserRepository::class)]
131
129
class User implements UserInterface, PasswordAuthenticatedUserInterface
132
130
{
133
- /**
134
- * @ORM\Id
135
- * @ORM\GeneratedValue
136
- * @ORM\Column(type="integer")
137
- */
131
+ #[ORM\Id]
132
+ #[ORM\GeneratedValue]
133
+ #[ORM\Column(type: 'integer')]
138
134
private $id;
139
135
140
- /**
141
- * @ORM\Column(type="string", length=180, unique=true)
142
- */
136
+ #[ORM\Column(type: 'string', length: 180, unique: true)]
143
137
private $email;
144
138
145
- /**
146
- * @ORM\Column(type="json")
147
- */
139
+ #[ORM\Column(type: 'json')]
148
140
private $roles = [];
149
141
150
- /**
151
- * @var string The hashed password
152
- * @ORM\Column(type="string")
153
- */
142
+ #[ORM\Column(type: 'string')]
154
143
private $password;
155
144
156
145
public function getId(): ?int
You can’t perform that action at this time.
0 commit comments