You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying to bind this form to the post triggers the following error:
Warning: array_replace_recursive() [function.array-replace-recursive]: Argument #1 is not an array in D:\workspace\09_061_Shifter_RAI\vendor\symfony\src\Symfony\Component\Form\Form.php line 583
The text was updated successfully, but these errors were encountered:
ericclemmons, indeed it is really easy to workaround this one, but I still feel that the issue addresses a normal use case, which should probably be fixed.
There's no need to create an associative array of whitelisted properties, as that's what the DataMapper portion of the form does automatically when bound.
If you still believe this is a bug, it's better to ping beberlei about it, as he's the author of this component.
Commits
-------
6a45a41 [Form] Fixed Form::bindRequest() when used on a form without children
Discussion
----------
[Form] Fixed Form::bindRequest() when used on a form without children
Bug fix: yes
Feature addition: no
Backwards compatibility break: no
Symfony2 tests pass: yes
Fixes the following tickets: #2553
Todo: -

I created a form using the form factory which essentially contains only one field:
Trying to bind this form to the post triggers the following error:
Warning: array_replace_recursive() [function.array-replace-recursive]: Argument #1 is not an array in D:\workspace\09_061_Shifter_RAI\vendor\symfony\src\Symfony\Component\Form\Form.php line 583
The text was updated successfully, but these errors were encountered: