In the controller how can you manually add errors to inputs?
I need to programmatically and an error to the form and stop it from continuing to the next step. Without the flow I know I can just do something like:
$form->get('name')->addError(new FormError('You have an error here!'));
if( $form->isSubmitted() && $form->isValid())
however there doesn't seem to be a way to do this with the flow.
In the controller how can you manually add errors to inputs?
I need to programmatically and an error to the form and stop it from continuing to the next step. Without the flow I know I can just do something like:
however there doesn't seem to be a way to do this with the flow.