From 4181079d8b62656eba44894c091e3a0b3b18e39e Mon Sep 17 00:00:00 2001 From: Cedric LOMBARDOT Date: Fri, 11 Apr 2014 09:45:35 +0000 Subject: [PATCH] Fix parse of input forms with options required When form like model type was parsed this pass the required 'class' option to enable the build of the class --- Parser/FormTypeParser.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Parser/FormTypeParser.php b/Parser/FormTypeParser.php index e089432..87dc9e8 100644 --- a/Parser/FormTypeParser.php +++ b/Parser/FormTypeParser.php @@ -104,7 +104,7 @@ class FormTypeParser implements ParserInterface $bestType = sprintf('array of %ss', $this->mapTypes[$config->getOption('type')]); } else { // 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); continue 2;