src/Pokebattle/ApiBundle/Form/PokeTypePokemonTypeBase.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('attaque')
            ->add('attaque_spe')
            ->add('defence')
            ->add('defence_spe')
            ->add('vitesse')
            ->add('pv')
            ->add('pokedex')
            ->add('evolue', 'entity', array(
                'class' => 'PokebattleApiBundle:PokeTypePokemon',
                'property' => 'id',
                'required' => false))
        ;
    }
public function buildForm ( FormBuilderInterface $ builder , array $ options ) { $ builder -> add ( 'nom' ) -> add ( 'attaque' ) -> add ( 'attaque_spe' ) -> add ( 'defence' ) -> add ( 'defence_spe' ) -> add ( 'vitesse' ) -> add ( 'pv' ) -> add ( 'pokedex' ) -> add ( 'evolue' , 'entity' , array ( 'class' => 'PokebattleApiBundle:PokeTypePokemon' , 'property' => 'id' , 'required' => false ) ) ; }
@param FormBuilderInterface $builder
 @param array $options
@param FormBuilderInterface $builder @param array $options