From 18c9fb8c29a441f53dfe5becae468cb57f8130b5 Mon Sep 17 00:00:00 2001 From: Olivier Bense Date: Tue, 9 Feb 2016 14:31:12 +0100 Subject: [PATCH] Fix Collection Type options - Symfony 2.8 Support --- Parser/FormTypeParser.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Parser/FormTypeParser.php b/Parser/FormTypeParser.php index 6d9b5cd..07ef09e 100644 --- a/Parser/FormTypeParser.php +++ b/Parser/FormTypeParser.php @@ -238,7 +238,7 @@ class FormTypeParser implements ParserInterface // Embedded form collection // BC sf < 2.8 $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); $actualType = DataTypes::COLLECTION; $subType = is_object($embbededType) ? get_class($embbededType) : $embbededType;