From b0a2f0cab74c5d8f8c1bb7427566929112a0398a Mon Sep 17 00:00:00 2001 From: Sebastian Blank Date: Tue, 5 Sep 2023 15:16:23 +0200 Subject: [PATCH] Add deprecation for fieldtype --- .../ClassDefinition/IndexFieldSelectionCombo.php | 3 +++ .../ClassDefinition/IndexFieldSelectionField.php | 3 +++ 2 files changed, 6 insertions(+) diff --git a/src/CoreExtensions/ClassDefinition/IndexFieldSelectionCombo.php b/src/CoreExtensions/ClassDefinition/IndexFieldSelectionCombo.php index 30f9cd99..7e78e36c 100644 --- a/src/CoreExtensions/ClassDefinition/IndexFieldSelectionCombo.php +++ b/src/CoreExtensions/ClassDefinition/IndexFieldSelectionCombo.php @@ -25,6 +25,9 @@ class IndexFieldSelectionCombo extends Select { + /** + * @deprecated Will be removed in ecommerce-framework-bundle 2, use getFieldType() instead. + */ public string $fieldtype = 'indexFieldSelectionCombo'; public bool $specificPriceField = false; diff --git a/src/CoreExtensions/ClassDefinition/IndexFieldSelectionField.php b/src/CoreExtensions/ClassDefinition/IndexFieldSelectionField.php index 1b984055..85f2c77f 100644 --- a/src/CoreExtensions/ClassDefinition/IndexFieldSelectionField.php +++ b/src/CoreExtensions/ClassDefinition/IndexFieldSelectionField.php @@ -20,6 +20,9 @@ class IndexFieldSelectionField extends Textarea { + /** + * @deprecated Will be removed in ecommerce-framework-bundle 2, use getFieldType() instead. + */ public string $fieldtype = 'indexFieldSelectionField'; public bool $specificPriceField = false;