Open lsv opened 6 years ago
Thank you for this issue. Im not sure if this is documented or not. But this should work:
$builder->add('gender', ChoiceType::class, [
'label' => 'Gender',
/** @Ignore */
'choices' => GenderEnumType::getChoices(),
'required' => $options['fullprofile'],
'validation_groups' => $validationGroups,
]);
In a choicetype form element, Im using a Enumtype for choices
The extractor says this
Which is indeed
'choices' => GenderEnumType::getChoices(),
I know that this is a an arrayIs there a way to ignore this line? with a annotations or something? - I dont want to ignore the whole form, but just this single line - Something like this