From c38d5b64aace0293d26524412462425b80b8cff5 Mon Sep 17 00:00:00 2001 From: Vladimir Malik Date: Mon, 16 Sep 2024 10:57:07 +0200 Subject: [PATCH] Added field type for table query type definition. --- .../DataObjectQueryFieldConfigGenerator/AbstractTable.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/GraphQL/DataObjectQueryFieldConfigGenerator/AbstractTable.php b/src/GraphQL/DataObjectQueryFieldConfigGenerator/AbstractTable.php index 3e716bbc..9e090dad 100644 --- a/src/GraphQL/DataObjectQueryFieldConfigGenerator/AbstractTable.php +++ b/src/GraphQL/DataObjectQueryFieldConfigGenerator/AbstractTable.php @@ -81,11 +81,11 @@ function ($k) { public function getFieldType(Data $fieldDefinition, $class = null, $container = null) { if ($class instanceof ObjectbrickDefinition) { - $name = 'objectbrick_' . $class->getKey() . '_' . $fieldDefinition->getName(); + $name = 'objectbrick_' . $class->getKey() . '_' . $fieldDefinition->getFieldType() . '_' . $fieldDefinition->getName(); } elseif ($class instanceof FieldcollectionDefinition) { - $name = 'fieldcollection_' . $class->getKey() . '_' . $fieldDefinition->getName(); + $name = 'fieldcollection_' . $class->getKey() . '_' . $fieldDefinition->getFieldType() . '_' . $fieldDefinition->getName(); } else { - $name = 'object_' . $class->getName() . '_' . $fieldDefinition->getName(); + $name = 'object_' . $class->getName() . '_' . $fieldDefinition->getFieldType() . '_' . $fieldDefinition->getName(); } $columns = $this->getTableColumns($fieldDefinition);