Skip to content

Commit

Permalink
buildLiform() affects the schema, does not add a subarray
Browse files Browse the repository at this point in the history
  • Loading branch information
nacmartin committed Mar 9, 2017
1 parent 25390a3 commit b7af641
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Limenius/Liform/Transformer/CompoundTransformer.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit b7af641

Please sign in to comment.