I have a search form with 2 fields, not linked to an entity. Let's say it's built like this:
$builder
->add('orderNumber', 'text', array('required' => false))
->add('customerNumber', 'text', array('required' => false))
;
I want the users to be obliged to fill at least one of the two fields.
What is the proper way to achieve this with Symfony 2.5?
Edit: Can it be done without adding a data class?