Skip to content

Select control duplicate #67

@duvg

Description

@duvg

I'm use this bundle is excellent but i have a error, when load its in select dependent, where mi parent is Category and my chind control is Product, it's work perfect but have a bug, on duplicate control product

this is my code config

shtumi_useful:
    dependent_filtered_entities:
        producto_by_categoria:
            class: GestionBundle:Producto
            parent_property: categoria
            property: nombreciud
            role: IS_AUTHENTICATED_ANONYMOUSLY
            no_result_msg: 'No hay regiones encontradas'
            order_property: nombreciud
            order_direction: ASC`

this is mi code from my admin class selecction where implement this functionality

$formMapper
            ->add('codigo','text', array('label'=>'codigo', 'required'=>'true'))
            ->add('categoria')
            ->add('productos')
            ->add('productos', 'shtumi_dependent_filtered_entity', array(
                'entity_alias' => 'producto_by_categoria',
                'empty_value' => 'Select',
                'parent_field' => 'categoria',
                'required' => true,

            ))
        ;

bug

help me pease!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions