Skip to content

Commit

Permalink
Merge pull request #262 from dotkernel/issue-260
Browse files Browse the repository at this point in the history
Issue #260: Removed unnecessary `HasLifecycleCallbacks` entity attributes
  • Loading branch information
arhimede authored May 23, 2024
2 parents 38ff7b3 + 7b8e98a commit 5c5624f
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 6 deletions.
1 change: 0 additions & 1 deletion src/Admin/src/Entity/Admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

#[ORM\Entity(repositoryClass: AdminRepository::class)]
#[ORM\Table("admin")]
#[ORM\HasLifecycleCallbacks]
class Admin extends AbstractEntity implements UserEntityInterface
{
use PasswordTrait;
Expand Down
1 change: 0 additions & 1 deletion src/Admin/src/Entity/AdminRole.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

#[ORM\Entity(repositoryClass: AdminRoleRepository::class)]
#[ORM\Table("admin_role")]

Check warning on line 13 in src/Admin/src/Entity/AdminRole.php

View workflow job for this annotation

GitHub Actions / Qodana for PHP

Undefined class

Undefined class 'Table'
#[ORM\HasLifecycleCallbacks]
class AdminRole extends AbstractEntity implements RoleInterface
{
public const ROLE_ADMIN = 'admin';
Expand Down
1 change: 0 additions & 1 deletion src/User/src/Entity/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@

#[ORM\Entity(repositoryClass: UserRepository::class)]

Check warning on line 21 in src/User/src/Entity/User.php

View workflow job for this annotation

GitHub Actions / Qodana for PHP

Undefined class

Undefined class 'Entity'
#[ORM\Table(name: "user")]

Check warning on line 22 in src/User/src/Entity/User.php

View workflow job for this annotation

GitHub Actions / Qodana for PHP

Undefined class

Undefined class 'Table'
#[ORM\HasLifecycleCallbacks]
class User extends AbstractEntity implements UserEntityInterface

Check warning on line 23 in src/User/src/Entity/User.php

View workflow job for this annotation

GitHub Actions / Qodana for PHP

Undefined class

Undefined class 'UserEntityInterface'
{
use PasswordTrait;
Expand Down
1 change: 0 additions & 1 deletion src/User/src/Entity/UserDetail.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@

#[ORM\Entity(repositoryClass: UserDetailRepository::class)]

Check warning on line 11 in src/User/src/Entity/UserDetail.php

View workflow job for this annotation

GitHub Actions / Qodana for PHP

Undefined class

Undefined class 'Entity'
#[ORM\Table(name: "user_detail")]
#[ORM\HasLifecycleCallbacks]
class UserDetail extends AbstractEntity
{
#[ORM\OneToOne(inversedBy: "detail", targetEntity: User::class)]
Expand Down
1 change: 0 additions & 1 deletion src/User/src/Entity/UserResetPasswordEntity.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@

#[ORM\Entity]
#[ORM\Table(name: "user_reset_password")]
#[ORM\HasLifecycleCallbacks]
class UserResetPasswordEntity extends AbstractEntity
{
public const STATUS_COMPLETED = 'completed';
Expand Down
1 change: 0 additions & 1 deletion src/User/src/Entity/UserRole.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

#[ORM\Entity(repositoryClass: UserRoleRepository::class)]

Check warning on line 12 in src/User/src/Entity/UserRole.php

View workflow job for this annotation

GitHub Actions / Qodana for PHP

Undefined class

Undefined class 'Entity'
#[ORM\Table(name: "user_role")]
#[ORM\HasLifecycleCallbacks]
class UserRole extends AbstractEntity implements RoleInterface
{
public const ROLE_GUEST = 'guest';
Expand Down

0 comments on commit 5c5624f

Please sign in to comment.