mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-08 18:49:26 +03:00
Pass children options to subform
This commit is contained in:
parent
d8c05dbf57
commit
ff38cd4568
@ -126,6 +126,7 @@ class FormTypeParser implements ParserInterface
|
||||
$parameters = array();
|
||||
foreach ($form as $name => $child) {
|
||||
$config = $child->getConfig();
|
||||
$options = $config->getOptions();
|
||||
$bestType = '';
|
||||
$actualType = null;
|
||||
$subType = null;
|
||||
@ -171,7 +172,7 @@ class FormTypeParser implements ParserInterface
|
||||
*/
|
||||
$addDefault = false;
|
||||
try {
|
||||
$subForm = $this->formFactory->create($type);
|
||||
$subForm = $this->formFactory->create($type, null, $options);
|
||||
$subParameters = $this->parseForm($subForm, $name);
|
||||
|
||||
if (!empty($subParameters)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user