diff --git a/src/Limenius/Liform/Transformer/CompoundTransformer.php b/src/Limenius/Liform/Transformer/CompoundTransformer.php index 0f33e66..bc44b13 100644 --- a/src/Limenius/Liform/Transformer/CompoundTransformer.php +++ b/src/Limenius/Liform/Transformer/CompoundTransformer.php @@ -58,10 +58,11 @@ public function transform(FormInterface $form, $extensions = [], $widget = null) } $innerType = $form->getConfig()->getType()->getInnerType(); + $schema = $this->addCommonSpecs($form, $schema, $extensions, $widget); + if (method_exists($innerType, 'buildLiform')) { - $schema['liform'] = $innerType->buildLiform($form); + $schema = $innerType->buildLiform($form, $schema); } - $schema = $this->addCommonSpecs($form, $schema, $extensions, $widget); return $schema; }