From 4860ba12062c5c50ab9092a051acc68cdd23b0fd Mon Sep 17 00:00:00 2001 From: Mathieu Ducrot Date: Mon, 2 Sep 2024 18:26:49 +0200 Subject: [PATCH] Dropped support on Parameter::historyLegacy and also remove it from the ParameterAdmin --- CHANGELOG.md | 4 ++++ src/Admin/ParameterAdmin.php | 3 --- src/Entity/Parameter.php | 11 ----------- 3 files changed, 4 insertions(+), 14 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6312003..44e858b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ CHANGELOG =================== +## v2.8.0 - (2024-09-02) +### Removed +- Dropped support on `Parameter::historyLegacy` and also remove it from the `ParameterAdmin` + ## v2.7.0 - (2024-08-28) ### Added - `docs/tailwind.md` documentation diff --git a/src/Admin/ParameterAdmin.php b/src/Admin/ParameterAdmin.php index ca948f3..9c60d71 100644 --- a/src/Admin/ParameterAdmin.php +++ b/src/Admin/ParameterAdmin.php @@ -111,9 +111,6 @@ protected function configureShowFields(ShowMapper $show): void $show ->add('value', $valueType, ['label' => 'field.label_value']) ->end() - ->with('fieldset.label_history', ['class' => 'col-md-12', 'label' => 'fieldset.label_history']) - ->add('historyLegacy', null, ['template' => '@SmartSonata/admin/parameter_admin/timeline_history_field.html.twig']) - ->end() ; } diff --git a/src/Entity/Parameter.php b/src/Entity/Parameter.php index 5637365..66b76b7 100644 --- a/src/Entity/Parameter.php +++ b/src/Entity/Parameter.php @@ -66,12 +66,6 @@ class Parameter implements ParameterInterface #[Assert\Length(max: 100)] private ?string $regex = null; - /** - * @ORM\Column(name="history_legacy", nullable=true) - */ - #[ORM\Column(name: 'history_legacy', nullable: true)] - protected ?array $historyLegacy = null; - /** * @param mixed $payload * @Assert\Callback @@ -257,9 +251,4 @@ public function setRegex(?string $regex): void { $this->regex = $regex; } - - public function getHistoryLegacy(): ?array - { - return $this->historyLegacy; - } }