From 2f3b397384723684556fdec30fb7a6ba8672abe1 Mon Sep 17 00:00:00 2001 From: Daniel Guzman Date: Wed, 21 Aug 2024 23:31:33 +0200 Subject: [PATCH] Add entity name to table --- composer.json | 2 +- src/Entity/CustomRole.php | 15 +++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/composer.json b/composer.json index e17be3dc..8cc54dd6 100644 --- a/composer.json +++ b/composer.json @@ -22,7 +22,7 @@ "symfony/twig-bundle": "6.3.*", "symfony/validator": "6.3.*", "symfony/yaml": "6.3.*", - "ext-pdo": "*" + "ext-pdo": "*" }, "config": { "allow-plugins": { diff --git a/src/Entity/CustomRole.php b/src/Entity/CustomRole.php index 7e55f719..88f970e0 100644 --- a/src/Entity/CustomRole.php +++ b/src/Entity/CustomRole.php @@ -26,6 +26,9 @@ class CustomRole #[ORM\Column(nullable: true)] private ?int $entityId = null; + #[ORM\Column(length: 255, nullable: true)] + private ?string $entityName = null; + public function getId(): ?int { return $this->id; @@ -78,4 +81,16 @@ class CustomRole return $this; } + + public function getEntityName(): ?string + { + return $this->entityName; + } + + public function setEntityName(?string $entityName): static + { + $this->entityName = $entityName; + + return $this; + } }