src/moocApp/MoocBundle/Form/ChapitreType.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')
            ->add('description')
            ->add('cours')
                ->add('cours', 'entity', array('class' => 'MoocBundle:Cours', 'property' => 'id'))
                ->add('valider', 'submit')
        ;
    }
public function buildForm ( FormBuilderInterface $ builder , array $ options ) { $ builder -> add ( 'nom' ) -> add ( 'description' ) -> add ( 'cours' ) -> add ( 'cours' , 'entity' , array ( 'class' => 'MoocBundle:Cours' , 'property' => 'id' ) ) -> add ( 'valider' , 'submit' ) ; }
@param FormBuilderInterface $builder
 @param array $options
@param FormBuilderInterface $builder @param array $options