Merge branch 'exports'

This commit is contained in:
2017-03-07 16:06:10 +01:00
7 changed files with 46 additions and 7 deletions

View File

@@ -52,13 +52,13 @@ class GenderFilter implements FilterInterface,
Person::FEMALE_GENDER => 'Woman',
Person::MALE_GENDER => 'Man'
),
'multiple' => true,
'multiple' => false,
'expanded' => false
));
}
public function validateForm($data, ExecutionContextInterface $context)
{dump($data);
{
if (count($data['accepted_genders']) === 0) {
$context->buildViolation("You should select an option")
->addViolation();