Building a Symfony2 form with choices, there is a option "empty value", to set the text related to the empty choice.
However, I want to set my choice field as mandatory, so the empty value should be displayed but no choosen. Using the empty or null constraints, there is no error when the user send the "" value. How should this be done?
required => true? If you are, you should note that this is a flag to enable the HTML5requiredattribute. It's not the same as constraint validation: symfony.com/doc/current/reference/forms/types/… - Darragh Enright