Skip to content

isValid checks whether submitted #183

@frag-seb

Description

@frag-seb

I think the duplicate check is unnecessary, isValid checks if isSubmitted.

if ($form->isSubmitted() && $form->isValid()) {...}

example is here:

https://github.com/symfony/symfony-demo/blob/master/src/AppBundle/Controller/Admin/BlogController.php#L83

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions