Skip to content

Commit

Permalink
Added field type for table query type definition.
Browse files Browse the repository at this point in the history
  • Loading branch information
vmalyk committed Sep 16, 2024
1 parent 0a9a920 commit c38d5b6
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit c38d5b6

Please sign in to comment.