Skip to content

Commit

Permalink
changes for pull request review
Browse files Browse the repository at this point in the history
  • Loading branch information
claudiu committed Nov 1, 2023
1 parent 41e245f commit 98f417f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions src/User/src/Entity/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@ class User extends AbstractEntity implements UserEntityInterface
#[ORM\Column(name: "password", type: "string", length: 191)]
protected string $password;

#[ORM\Column("status", type: "string", length: 20)]
#[ORM\Column(name: "status", type: "string", length: 20)]
protected string $status = self::STATUS_PENDING;

#[ORM\Column("isDeleted", type: "boolean")]
#[ORM\Column(name: "isDeleted", type: "boolean")]
protected bool $isDeleted = false;

#[ORM\Column(name: "hash", type: "string", length: 64, unique: true)]
Expand Down
6 changes: 4 additions & 2 deletions src/User/src/Entity/UserResetPasswordEntity.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@
use Doctrine\ORM\Mapping as ORM;
use Throwable;

#[ORM\Entity, ORM\Table(name: "user_reset_password"), ORM\HasLifecycleCallbacks]
#[ORM\Entity]
#[ORM\Table(name: "user_reset_password")]
#[ORM\HasLifecycleCallbacks]
class UserResetPasswordEntity extends AbstractEntity
{
public const STATUS_COMPLETED = 'completed';
Expand All @@ -21,7 +23,7 @@ class UserResetPasswordEntity extends AbstractEntity
self::STATUS_REQUESTED,
];

#[ORM\ManyToOne(targetEntity: "User", cascade: ['persist', 'remove'], inversedBy: "resetPasswords")]
#[ORM\ManyToOne(targetEntity: User::class, cascade: ['persist', 'remove'], inversedBy: "resetPasswords")]
#[ORM\JoinColumn(name: "userUuid", referencedColumnName: "uuid")]
protected User $user;

Expand Down
8 changes: 3 additions & 5 deletions src/User/src/Entity/UserRole.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,10 @@
#[ORM\HasLifecycleCallbacks]
class UserRole extends AbstractEntity implements RoleInterface
{
public const ROLE_GUEST = 'guest';
public const ROLE_API_USER = 'api_user';
public const ROLE_USER = 'user';
public const ROLES = [
public const ROLE_GUEST = 'guest';
public const ROLE_USER = 'user';
public const ROLES = [
self::ROLE_GUEST,
self::ROLE_API_USER,
self::ROLE_USER,
];

Expand Down

0 comments on commit 98f417f

Please sign in to comment.