diff --git a/Form/Type/Select2MaritalStatusType.php b/Form/Type/Select2MaritalStatusType.php index e248a534e..ed0dcc084 100644 --- a/Form/Type/Select2MaritalStatusType.php +++ b/Form/Type/Select2MaritalStatusType.php @@ -75,7 +75,7 @@ class Select2MaritalStatusType extends AbstractType $resolver->setDefaults(array( 'class' => 'Chill\PersonBundle\Entity\MaritalStatus', - 'choices' => $choices + 'choices' => array_combine(array_values($choices),array_keys($choices)) )); } }