Hello,
the definition of the method "createBuilder()" on documentation:
The createBuilder () method arguments Takes up to Three (Only the
first goal IS required):
- The string form (Meaning you're building a form);
- a name for formule (eg product), Which impacts how The Name Of The
attribute fields are Rendered (eg name = "product [name]");
- An array of options for formule.
but when I use this snippet:
$ form = $ this-> get ('form.factory')
-> createBuilder ('form', 'size', array (
'data_class' => 'Mind\DatamartBundle\Entity\Dimension',
)) -> getForm ();
it generates the exeption:
Expected argument of type object or array, string Given
but when I see on the class "FormFactory" I notice that the 2nd case
this is not the name of the form, but "$data " to make $builder-
>setData ($data);....
an idea .. ?
sorry my english
thank you
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
You received this message because you are subscribed to the Google
Groups "symfony developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-devs?hl=en