shtumi/ShtumiUsefulBundle

Ajax autocomplete invalid type name

Opened this issue · 0 comments

dnna commented

When trying to add shtumi_ajax_autocomplete the following exception appears:

The type name specified for the service "shtumi.useful.type.ajax_autocomplete" does not match the actual name. Expected "shtumi_ajax_autocomplete", given "shtumi_type_ajax_autocomplete"

My code is the following as derived from the readme:

    protected function configureDatagridFilters(DatagridMapper $datagridMapper)
    {
        $datagridMapper
            ->add('id')
            ->add('sender', 'shtumi_ajax_autocomplete', array('label' => 'Sender', 'entity_alias'=>'users'))
        ;
    }

From what I have seen a simple rename in AjaxAutocompleteType and the relevant twig will fix this.