mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-02 07:41:43 +03:00
Merge pull request #586 from PedroTroller/fix/subform-options
Pass children options to subform
This commit is contained in:
commit
647131ab8e
@ -132,6 +132,7 @@ class FormTypeParser implements ParserInterface
|
|||||||
$parameters = array();
|
$parameters = array();
|
||||||
foreach ($form as $name => $child) {
|
foreach ($form as $name => $child) {
|
||||||
$config = $child->getConfig();
|
$config = $child->getConfig();
|
||||||
|
$options = $config->getOptions();
|
||||||
$bestType = '';
|
$bestType = '';
|
||||||
$actualType = null;
|
$actualType = null;
|
||||||
$subType = null;
|
$subType = null;
|
||||||
@ -177,7 +178,7 @@ class FormTypeParser implements ParserInterface
|
|||||||
*/
|
*/
|
||||||
$addDefault = false;
|
$addDefault = false;
|
||||||
try {
|
try {
|
||||||
$subForm = $this->formFactory->create($type);
|
$subForm = $this->formFactory->create($type, null, $options);
|
||||||
$subParameters = $this->parseForm($subForm, $name);
|
$subParameters = $this->parseForm($subForm, $name);
|
||||||
|
|
||||||
if (!empty($subParameters)) {
|
if (!empty($subParameters)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user