Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- namespace Artel\AdminBundle\Form;
- use Symfony\Component\Form\AbstractType;
- use Symfony\Component\Form\FormBuilderInterface;
- use Symfony\Component\OptionsResolver\OptionsResolverInterface;
- class CodeDirectorySpecialitiesType extends AbstractType
- {
- /**
- * @param FormBuilderInterface $builder
- * @param array $options
- */
- public function buildForm(FormBuilderInterface $builder, array $options)
- {
- $builder
- ->add('specialities')
- ->add('skills')
- ;
- }
- /**
- * @param OptionsResolverInterface $resolver
- */
- public function setDefaultOptions(OptionsResolverInterface $resolver)
- {
- $resolver->setDefaults(array(
- 'data_class' => 'Artel\ProfileBundle\Entity\CodeDirectorySpecialities'
- ));
- }
- /**
- * @return string
- */
- public function getName()
- {
- return 'artel_profilebundle_codedirectoryspecialities';
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment