src/Dpavic/JobsBundle/Form/JobType.php
/**
     * @param FormBuilderInterface $builder
     * @param array $options
     */
@param FormBuilderInterface $builder
@param array $options
@param FormBuilderInterface $builder @param array $options
public function buildForm(FormBuilderInterface $builder, array $options)
    {
        $builder
                ->add('type', 'choice', array('choices' => Job::getTypes(),
                    'expanded' => true))
                ->add('company')
                ->add('file', 'file', array('label' => 'Company Logo', 
                    'required' => false))
                ->add('url')
                ->add('position')
                ->add('location')
                ->add('description')
                ->add('howToApply')
                ->add('isPublic')
                ->add('email')
                ->add('category')
        ;
    }
public function buildForm ( FormBuilderInterface $ builder , array $ options ) { $ builder -> add ( 'type' , 'choice' , array ( 'choices' => Job :: getTypes ( ) , 'expanded' => true ) ) -> add ( 'company' ) -> add ( 'file' , 'file' , array ( 'label' => 'Company Logo' , 'required' => false ) ) -> add ( 'url' ) -> add ( 'position' ) -> add ( 'location' ) -> add ( 'description' ) -> add ( 'howToApply' ) -> add ( 'isPublic' ) -> add ( 'email' ) -> add ( 'category' ) ; }
@param FormBuilderInterface $builder
 @param array $options
@param FormBuilderInterface $builder @param array $options