http://symfony.com/doc/current/book/forms.html#groups-based-on-the-submitted-data, a closure is used in the doc too... I think we can delete validationGroups and put the closure in setDefaultoption.