|
@@ -123,6 +123,10 @@ class FormFactory implements FormFactoryInterface
|
|
|
$knownOptions = array();
|
|
|
$passedOptions = array_keys($options);
|
|
|
|
|
|
+ if (!array_key_exists('data', $options)) {
|
|
|
+ $options['data'] = $data;
|
|
|
+ }
|
|
|
+
|
|
|
while (null !== $type) {
|
|
|
$type = $this->getType($type);
|
|
|
|
|
@@ -160,10 +164,6 @@ class FormFactory implements FormFactoryInterface
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- if (null !== $data) {
|
|
|
- $builder->setData($data);
|
|
|
- }
|
|
|
-
|
|
|
return $builder;
|
|
|
}
|
|
|
|