src/KiselevMusic/AdminBundle/Form/Type/VideoFormType.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('title', 'text', array(
                'constraints' => array(
                    new NotBlank()
                )
            ))
            ->add('file', 'file', array(
                'constraints' => array(
                    new NotBlank()
                ),
            ))
            ->add('public', 'checkbox', array(
                'required'  => false
            ))
        ;
    }
public function buildForm ( FormBuilderInterface $ builder , array $ options ) { $ builder -> add ( 'title' , 'text' , array ( 'constraints' => array ( new NotBlank ( ) ) ) ) -> add ( 'file' , 'file' , array ( 'constraints' => array ( new NotBlank ( ) ) , ) ) -> add ( 'public' , 'checkbox' , array ( 'required' => false ) ) ; }
@param FormBuilderInterface $builder
 @param array                $options
@param FormBuilderInterface $builder @param array $options
//                'mapping'   => 'video_upload'