mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-02 15:51:48 +03:00
Fix FormTypeParser to reflect last Symfony2 changes
See: cd7835d8d2 (L5L97)
This commit is contained in:
parent
b19822dde5
commit
f8ab93a167
@ -61,7 +61,7 @@ class FormTypeParser
|
||||
$config = $child->getConfig();
|
||||
|
||||
$bestType = '';
|
||||
foreach ($config->getTypes() as $type) {
|
||||
for ($type = $config->getType(); null !== $type; $type = $type->getParent()) {
|
||||
if (isset($this->mapTypes[$type->getName()])) {
|
||||
$bestType = $this->mapTypes[$type->getName()];
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user