src/Pokebattle/ApiBundle/Form/PokeObjetTypeBase.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('pokeNpcobjetsInternal', 'entity', array(
                'class' => 'PokebattleApiBundle:PokeNpc',
                'property' => 'id',
                'required' => false))
            ->add('nom')
            ->add('quantity')
            ->add('type', 'entity', array(
                'class' => 'PokebattleApiBundle:PokeTypeObjet',
                'property' => 'id',
                'required' => false))
        ;
    }
public function buildForm ( FormBuilderInterface $ builder , array $ options ) { $ builder -> add ( 'pokeNpcobjetsInternal' , 'entity' , array ( 'class' => 'PokebattleApiBundle:PokeNpc' , 'property' => 'id' , 'required' => false ) ) -> add ( 'nom' ) -> add ( 'quantity' ) -> add ( 'type' , 'entity' , array ( 'class' => 'PokebattleApiBundle:PokeTypeObjet' , 'property' => 'id' , 'required' => false ) ) ; }
@param FormBuilderInterface $builder
 @param array $options
@param FormBuilderInterface $builder @param array $options