Example #1
0
 /**
  * @param FormBuilderInterface $builder
  * @param array $options
  */
 public function buildForm(FormBuilderInterface $builder, array $options)
 {
     parent::buildForm($builder, $options);
     $builder->get('studies')->add('validatedLevel', 'entity', array('label' => 'user.professor.field.validated_level', 'class' => 'Mathsup\\ExerciseBundle\\Entity\\Level'));
 }
Example #2
0
 /**
  * @param FormBuilderInterface $builder
  * @param array $options
  */
 public function buildForm(FormBuilderInterface $builder, array $options)
 {
     parent::buildForm($builder, $options);
     $builder->get('studies')->add('school', 'text', array('label' => 'user.student.field.school'))->add('level', 'entity', array('class' => 'Mathsup\\ExerciseBundle\\Entity\\Level', 'label' => 'user.student.field.level'))->add('repeatedLevels', 'entity', array('required' => false, 'label' => 'user.student.field.repeated_levels', 'class' => 'Mathsup\\ExerciseBundle\\Entity\\Level', 'multiple' => true));
 }