From d9543076170f7dee8a276784ffba11820348c074 Mon Sep 17 00:00:00 2001 From: Gnucki Date: Mon, 29 Sep 2014 09:18:44 +0200 Subject: [PATCH] Allow to pass additional options to form factory --- Form/Factory/FormFactory.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Form/Factory/FormFactory.php b/Form/Factory/FormFactory.php index 9da67d1be0..9c21abbe8e 100644 --- a/Form/Factory/FormFactory.php +++ b/Form/Factory/FormFactory.php @@ -30,7 +30,7 @@ public function __construct(FormFactoryInterface $formFactory, $name, $type, arr public function createForm(array $options = array()) { - $options = array_merge($options, array('validation_groups' => $this->validationGroups)); + $options = array_merge(array('validation_groups' => $this->validationGroups), $options); return $this->formFactory->createNamed($this->name, $this->type, null, $options); }