src/Flowcode/ShopBundle/Form/ProductOrderStatusType.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('name')
            ->add('description')
            ->add('invoiceable')
            ->add('orderModificable')
            ->add('stockModifier')
            ->add('orderDeleted')
            ->add('orderCanceled')
            ->add('previousSteps', Select2EntityType::class, [
                'multiple' => true,
                'remote_route' => 'admin_orderstatus_find_all',
                'class' => ProductOrderStatus::class,
                'text_property' => 'name',
                'minimum_input_length' => 1,
                'allow_clear' => true,
                'delay' => 250,
                'cache' => false,
                'language' => 'es',
                'placeholder' => 'Selecionar',
            ])
            ->add('followingSteps', Select2EntityType::class, [
                'multiple' => true,
                'remote_route' => 'admin_orderstatus_find_all',
                'class' => ProductOrderStatus::class,
                'text_property' => 'name',
                'minimum_input_length' => 1,
                'allow_clear' => true,
                'delay' => 250,
                'cache' => false,
                'language' => 'es',
                'placeholder' => 'Selecionar',
            ])
        ;
    }
public function buildForm ( FormBuilderInterface $ builder , array $ options ) { $ builder -> add ( 'name' ) -> add ( 'description' ) -> add ( 'invoiceable' ) -> add ( 'orderModificable' ) -> add ( 'stockModifier' ) -> add ( 'orderDeleted' ) -> add ( 'orderCanceled' ) -> add ( 'previousSteps' , Select2EntityType :: class , [ 'multiple' => true , 'remote_route' => 'admin_orderstatus_find_all' , 'class' => ProductOrderStatus :: class , 'text_property' => 'name' , 'minimum_input_length' => 1 , 'allow_clear' => true , 'delay' => 250 , 'cache' => false , 'language' => 'es' , 'placeholder' => 'Selecionar' , ] ) -> add ( 'followingSteps' , Select2EntityType :: class , [ 'multiple' => true , 'remote_route' => 'admin_orderstatus_find_all' , 'class' => ProductOrderStatus :: class , 'text_property' => 'name' , 'minimum_input_length' => 1 , 'allow_clear' => true , 'delay' => 250 , 'cache' => false , 'language' => 'es' , 'placeholder' => 'Selecionar' , ] ) ; }
@param FormBuilderInterface $builder
 @param array $options
@param FormBuilderInterface $builder @param array $options