From 98a0300f2b4aea68acff109b553092e0d49f7b8f Mon Sep 17 00:00:00 2001 From: MarioRadu Date: Mon, 30 Oct 2023 18:09:09 +0200 Subject: [PATCH] requsted changes --- src/Admin/src/Entity/Admin.php | 2 +- src/Admin/src/Entity/AdminLogin.php | 3 +-- src/Admin/src/Entity/AdminRole.php | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/Admin/src/Entity/Admin.php b/src/Admin/src/Entity/Admin.php index 88a1ce7..09c3a8d 100644 --- a/src/Admin/src/Entity/Admin.php +++ b/src/Admin/src/Entity/Admin.php @@ -12,7 +12,7 @@ use function array_map; -#[ORM\Entity(repositoryClass: AdminRepository::class, readOnly: false)] +#[ORM\Entity(repositoryClass: AdminRepository::class)] #[ORM\Table(name: "admin")] #[ORM\HasLifecycleCallbacks] class Admin extends AbstractEntity implements AdminInterface diff --git a/src/Admin/src/Entity/AdminLogin.php b/src/Admin/src/Entity/AdminLogin.php index 7d9c4c8..195793f 100644 --- a/src/Admin/src/Entity/AdminLogin.php +++ b/src/Admin/src/Entity/AdminLogin.php @@ -8,7 +8,7 @@ use Frontend\Admin\Repository\AdminLoginRepository; use Frontend\App\Entity\AbstractEntity; -#[ORM\Entity(repositoryClass: AdminLoginRepository::class, readOnly: false)] +#[ORM\Entity(repositoryClass: AdminLoginRepository::class)] #[ORM\Table(name: 'admin_login')] #[ORM\HasLifecycleCallbacks] class AdminLogin extends AbstractEntity @@ -42,7 +42,6 @@ class AdminLogin extends AbstractEntity #[ORM\Column( name: "isMobile", type: "string", - length: 40, nullable: true, columnDefinition: "ENUM('yes', 'no')" )] diff --git a/src/Admin/src/Entity/AdminRole.php b/src/Admin/src/Entity/AdminRole.php index d64d91e..a124f87 100644 --- a/src/Admin/src/Entity/AdminRole.php +++ b/src/Admin/src/Entity/AdminRole.php @@ -8,7 +8,7 @@ use Frontend\Admin\Repository\AdminRoleRepository; use Frontend\App\Entity\AbstractEntity; -#[ORM\Entity(repositoryClass: AdminRoleRepository::class, readOnly: false)] +#[ORM\Entity(repositoryClass: AdminRoleRepository::class)] #[ORM\Table(name: 'admin_role')] #[ORM\HasLifecycleCallbacks] class AdminRole extends AbstractEntity