From a2eef9392c05587fa71d6cac62ebbff69dba31dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Corn=C3=A9=20Dorrestijn?= Date: Wed, 28 Aug 2024 13:35:54 +0200 Subject: [PATCH] Generate static typename for element metadata key value pairs --- .../DataObjectType/ElementMetadataKeyValuePairInputType.php | 2 +- src/GraphQL/DataObjectType/ElementMetadataKeyValuePairType.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/GraphQL/DataObjectType/ElementMetadataKeyValuePairInputType.php b/src/GraphQL/DataObjectType/ElementMetadataKeyValuePairInputType.php index 8ec80ef5..a5ddc4f5 100644 --- a/src/GraphQL/DataObjectType/ElementMetadataKeyValuePairInputType.php +++ b/src/GraphQL/DataObjectType/ElementMetadataKeyValuePairInputType.php @@ -35,7 +35,7 @@ final class ElementMetadataKeyValuePairInputType extends InputObjectType */ public function __construct($config = []) { - $config['name'] = 'element_metadata_item_' . uniqid(); + $config['name'] = 'element_metadata_item_key_value_pair_input'; $this->build($config); parent::__construct($config); } diff --git a/src/GraphQL/DataObjectType/ElementMetadataKeyValuePairType.php b/src/GraphQL/DataObjectType/ElementMetadataKeyValuePairType.php index fc3f14ed..4b1e3cfc 100644 --- a/src/GraphQL/DataObjectType/ElementMetadataKeyValuePairType.php +++ b/src/GraphQL/DataObjectType/ElementMetadataKeyValuePairType.php @@ -35,7 +35,7 @@ class ElementMetadataKeyValuePairType extends ObjectType */ public function __construct($config = []) { - $config['name'] = 'element_metadata_item_' . uniqid(); + $config['name'] = 'element_metadata_item_key_value_pair'; $this->build($config); parent::__construct($config); }