src/Sdz/ATIBundle/Form/ProduitType.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('nom','text',array('required' =>true))
            ->add('caracteristique','textarea',array('required' =>false))
            ->add('picture', new PictureType(),array('required' =>false))
            ->add('statut','checkbox',array('required' =>false))
            ;
    }
public function buildForm ( FormBuilderInterface $ builder , array $ options ) { $ builder -> add ( 'nom' , 'text' , array ( 'required' => true ) ) -> add ( 'caracteristique' , 'textarea' , array ( 'required' => false ) ) -> add ( 'picture' , new PictureType ( ) , array ( 'required' => false ) ) -> add ( 'statut' , 'checkbox' , array ( 'required' => false ) ) ; }
@param FormBuilderInterface $builder
 @param array $options
@param FormBuilderInterface $builder @param array $options