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

Environment:

  • Strangebuzz Snippet VM: 6.4.2
  • Symfony: 6.4.5

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