Symfony\Component\Form\FormInterface::setData
Updates the form with default data.
Signature
public function setData(mixed
$modelData )
Parameters
$modelData
— mixed- The data formatted as expected for the underlying object
Returns
- FormInterface
- The form instance
Errors/Exceptions
-
AlreadySubmittedException
- If the form has already been submitted.
-
LogicException
- If listeners try to call setData in a cycle. Or if