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

Environment:

  • Strangebuzz Snippet VM: 1.3.0
  • PHP: 7.2.16
  • Symfony: 4.2.6

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

 Show me the code