I have a form with a combobox and when submited the points values can not be repeated
The form
->add('points', 'choice', array(
'attr' => array('class' => 'form-control m-b'),
'choices' => array(
'0' => '0',
'1' => '1',
'2' => '2',
'3' => '3',
'4' => '4',
'5' => '5',
'6' => '6',
'7' => '7',
'8' => '8',
'9' => '9',
'10' => '10',
)
))
the version of symfony is 2.6
Any help will be appreciated