Hi,

Maybe someone can guide me to the right direction with this issue.

$form->bindRequest($this->get('request'));

is not working / not binding any data. The reason seems to be this
line in Form::bindRequest()

$request->request->get($this->getName(), array())

In my case, this will return an empty array, because the form data is
not nested into a parameter with the form name as key. It is working
when simply reading all request parameters:

$request->request->all()

My request parameters look like this after sending the form:

object(Symfony\Component\HttpFoundation\ParameterBag)#7 (1)
{ ["parameters":protected]=> array(4) { ["title"]=> string(7)
"Test" ["subtitle"]=> string(4) "foo" ["lifetime"]=> string(1)
"1" ["description"]=> string(4) "bar" } }

Any idea what's wrong with my form that the data is not stored nested,
as expected by the code in bindRequest()?

Thanks

-- 
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

Reply via email to