src/Sdz/ATIBundle/Form/ProduitMagasinAjoutType.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('quantite','integer',array('required' =>true))
               ->add('produit','entity',array('class' => 'SdzATIBundle:Produit','property'=> 'nom'))
               ->add('observation','textarea',array('required' =>true));
    }
public function buildForm ( FormBuilderInterface $ builder , array $ options ) { $ builder -> add ( 'quantite' , 'integer' , array ( 'required' => true ) ) -> add ( 'produit' , 'entity' , array ( 'class' => 'SdzATIBundle:Produit' , 'property' => 'nom' ) ) -> add ( 'observation' , 'textarea' , array ( 'required' => true ) ) ; }
@param FormBuilderInterface $builder
 @param array $options
@param FormBuilderInterface $builder @param array $options