Skip to content

[Form] Form::bindRequest will fail on form with only one field #2553

Closed
@Burgov

Description

@Burgov

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

$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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy