Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"ext-iconv": "*",
"beberlei/doctrineextensions": "^1.3",
"doctrine/doctrine-migrations-bundle": "^3.2",
"sumocoders/framework-core-bundle": "^7.1",
"sumocoders/framework-core-bundle": "^9.0",
"symfony/apache-pack": "^1.0.1",
"symfony/debug-bundle": "^7.1",
"symfony/dotenv": "^7.1",
Expand Down
30 changes: 15 additions & 15 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions src/Entity/User/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,16 @@
use App\ValueObject\User\Role;
use DateTime;
use Doctrine\ORM\Mapping as ORM;
use SumoCoders\FrameworkCoreBundle\Attribute\AuditTrail\AuditTrail;
use SumoCoders\FrameworkCoreBundle\Attribute\AuditTrail\SensitiveData;
use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
use Symfony\Component\Security\Core\User\PasswordAuthenticatedUserInterface;
use Symfony\Component\Security\Core\User\UserInterface;

#[ORM\Entity(repositoryClass: UserRepository::class)]
#[ORM\Table(name: 'user')]
#[UniqueEntity('email', message: "There is already an account with this email")]
#[AuditTrail]
class User implements UserInterface, PasswordAuthenticatedUserInterface
{
#[ORM\Id]
Expand All @@ -21,6 +24,7 @@ class User implements UserInterface, PasswordAuthenticatedUserInterface
private int $id;

#[ORM\Column(type: 'string', nullable: true)]
#[SensitiveData]
private ?string $password;

#[ORM\Column(type: 'boolean')]
Expand Down