src/Pokebattle/ApiBundle/Form/PokePokemonTypeBase.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('pokeNpcpokemonsInternal', 'entity', array(
                'class' => 'PokebattleApiBundle:PokeNpc',
                'property' => 'id',
                'required' => false))
            ->add('pokeNpcteamInternal', 'entity', array(
                'class' => 'PokebattleApiBundle:PokeNpc',
                'property' => 'id',
                'required' => false))
            ->add('surnom')
            ->add('niveau')
            ->add('capture', 'datetime', array(
                'input'  => 'datetime',
                'required' => false,
                'widget' => 'single_text'
            ))
            ->add('type', 'entity', array(
                'class' => 'PokebattleApiBundle:PokeTypePokemon',
                'property' => 'id',
                'required' => false))
            ->add('attaque1', 'entity', array(
                'class' => 'PokebattleApiBundle:PokeAttaque',
                'property' => 'id',
                'required' => false))
            ->add('attaque2', 'entity', array(
                'class' => 'PokebattleApiBundle:PokeAttaque',
                'property' => 'id',
                'required' => false))
            ->add('attaque3', 'entity', array(
                'class' => 'PokebattleApiBundle:PokeAttaque',
                'property' => 'id',
                'required' => false))
            ->add('attaque4', 'entity', array(
                'class' => 'PokebattleApiBundle:PokeAttaque',
                'property' => 'id',
                'required' => false))
        ;
    }
public function buildForm ( FormBuilderInterface $ builder , array $ options ) { $ builder -> add ( 'pokeNpcpokemonsInternal' , 'entity' , array ( 'class' => 'PokebattleApiBundle:PokeNpc' , 'property' => 'id' , 'required' => false ) ) -> add ( 'pokeNpcteamInternal' , 'entity' , array ( 'class' => 'PokebattleApiBundle:PokeNpc' , 'property' => 'id' , 'required' => false ) ) -> add ( 'surnom' ) -> add ( 'niveau' ) -> add ( 'capture' , 'datetime' , array ( 'input' => 'datetime' , 'required' => false , 'widget' => 'single_text' ) ) -> add ( 'type' , 'entity' , array ( 'class' => 'PokebattleApiBundle:PokeTypePokemon' , 'property' => 'id' , 'required' => false ) ) -> add ( 'attaque1' , 'entity' , array ( 'class' => 'PokebattleApiBundle:PokeAttaque' , 'property' => 'id' , 'required' => false ) ) -> add ( 'attaque2' , 'entity' , array ( 'class' => 'PokebattleApiBundle:PokeAttaque' , 'property' => 'id' , 'required' => false ) ) -> add ( 'attaque3' , 'entity' , array ( 'class' => 'PokebattleApiBundle:PokeAttaque' , 'property' => 'id' , 'required' => false ) ) -> add ( 'attaque4' , 'entity' , array ( 'class' => 'PokebattleApiBundle:PokeAttaque' , 'property' => 'id' , 'required' => false ) ) ; }
@param FormBuilderInterface $builder
 @param array $options
@param FormBuilderInterface $builder @param array $options