Output of the "Add a custom conditional validation on a Symfony form" Symfony snippet

Environment:

  • Strangebuzz Snippet VM: 2.2.2
  • Symfony: 5.2.0-BETA2

Code execution output:

Form is valid! start_date: 2019-03-26
Form is not valid: ERROR: The end date must be greater than the start date.

Form is valid! start_date: 2019-03-28