src/Pokebattle/ApiBundle/Form/PokeNpcTypeBase.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('pokeArenedresseursInternal', 'entity', array(
                'class' => 'PokebattleApiBundle:PokeArene',
                'property' => 'id',
                'required' => false))
            ->add('pokeDresseurnpcsInternal', 'entity', array(
                'class' => 'PokebattleApiBundle:PokeDresseur',
                'property' => 'id',
                'required' => false))
            ->add('nom')
            ->add('profession')
            ->add('description')
            ->add('position', 'entity', array(
                'class' => 'PokebattleApiBundle:PokePosition',
                'property' => 'id',
                'required' => false))
            ->add('zone', 'entity', array(
                'class' => 'PokebattleApiBundle:PokeZone',
                'property' => 'id',
                'required' => false))
        ;
    }
public function buildForm ( FormBuilderInterface $ builder , array $ options ) { $ builder -> add ( 'pokeArenedresseursInternal' , 'entity' , array ( 'class' => 'PokebattleApiBundle:PokeArene' , 'property' => 'id' , 'required' => false ) ) -> add ( 'pokeDresseurnpcsInternal' , 'entity' , array ( 'class' => 'PokebattleApiBundle:PokeDresseur' , 'property' => 'id' , 'required' => false ) ) -> add ( 'nom' ) -> add ( 'profession' ) -> add ( 'description' ) -> add ( 'position' , 'entity' , array ( 'class' => 'PokebattleApiBundle:PokePosition' , 'property' => 'id' , 'required' => false ) ) -> add ( 'zone' , 'entity' , array ( 'class' => 'PokebattleApiBundle:PokeZone' , 'property' => 'id' , 'required' => false ) ) ; }
@param FormBuilderInterface $builder
 @param array $options
@param FormBuilderInterface $builder @param array $options