mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-02 15:51:48 +03:00
Fix Collection Type options - Symfony 2.8 Support
This commit is contained in:
parent
5d9c47bbad
commit
18c9fb8c29
@ -238,7 +238,7 @@ class FormTypeParser implements ParserInterface
|
|||||||
// Embedded form collection
|
// Embedded form collection
|
||||||
// BC sf < 2.8
|
// BC sf < 2.8
|
||||||
$embbededType = $config->hasOption('entry_type') ? $config->getOption('entry_type') : $config->getOption('type');
|
$embbededType = $config->hasOption('entry_type') ? $config->getOption('entry_type') : $config->getOption('type');
|
||||||
$subForm = $this->formFactory->create($embbededType, null, $config->getOption('options', array()));
|
$subForm = $this->formFactory->create($embbededType, null, $config->getOption('entry_options', array()));
|
||||||
$children = $this->parseForm($subForm);
|
$children = $this->parseForm($subForm);
|
||||||
$actualType = DataTypes::COLLECTION;
|
$actualType = DataTypes::COLLECTION;
|
||||||
$subType = is_object($embbededType) ? get_class($embbededType) : $embbededType;
|
$subType = is_object($embbededType) ? get_class($embbededType) : $embbededType;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user