mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-09 02:59:27 +03:00
Merge pull request #363 from cedriclombardot/fix-model-type
Fix parse of input forms with options required
This commit is contained in:
commit
1c553e93ec
@ -104,7 +104,7 @@ class FormTypeParser implements ParserInterface
|
|||||||
$bestType = sprintf('array of %ss', $this->mapTypes[$config->getOption('type')]);
|
$bestType = sprintf('array of %ss', $this->mapTypes[$config->getOption('type')]);
|
||||||
} else {
|
} else {
|
||||||
// Embedded form collection
|
// Embedded form collection
|
||||||
$subParameters = $this->parseForm($this->formFactory->create($config->getOption('type')), $name . '[]');
|
$subParameters = $this->parseForm($this->formFactory->create($config->getOption('type'), null, $config->getOption('options', array())), $name . '[]');
|
||||||
$parameters = array_merge($parameters, $subParameters);
|
$parameters = array_merge($parameters, $subParameters);
|
||||||
|
|
||||||
continue 2;
|
continue 2;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user