Symfony\Component\Form\FormInterface::submit
Submits data to the form, transforms and validates it.
Signature
public function submit(null|string|array
$submittedData,
[Boolean
$clearMissing = true] )
Parameters
$submittedData
— object- The submitted data.
$clearMissing
— object- Whether to set fields to NULL
when they are missing in the
submitted data.
Returns
- FormInterface
- The form instance
Errors/Exceptions
-
AlreadySubmittedException
- If the form has already been submitted.