diff --git a/Form/Type/AppendScopeChoiceTypeTrait.php b/Form/Type/AppendScopeChoiceTypeTrait.php index 584d8cfcd..2cddce3cd 100644 --- a/Form/Type/AppendScopeChoiceTypeTrait.php +++ b/Form/Type/AppendScopeChoiceTypeTrait.php @@ -145,10 +145,8 @@ trait AppendScopeChoiceTypeTrait { $resolver ->setRequired(array('center', 'role')) - ->setAllowedTypes(array( - 'center' => 'Chill\MainBundle\Entity\Center', - 'role' => 'Symfony\Component\Security\Core\Role\Role' - )) + ->setAllowedTypes('center', 'Chill\MainBundle\Entity\Center') + ->setAllowedTypes('role', 'Symfony\Component\Security\Core\Role\Role') ; }