symfony/symfony — Issue #2553: Form::bindRequest will fail on form with only one field
Author: Burgov
Created: 2011-11-03 11:15:26+00:00
State: open

I created a form using the form factory which essentially contains only one field:

```php
$builder = $this->container->get('form.factory')->createBuilder(
'email',
$person->getEmail()
);
```

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