ShtumiUsefulBundle icon indicating copy to clipboard operation
ShtumiUsefulBundle copied to clipboard

Ajax autocomplete invalid type name

Open dnna opened this issue 13 years ago • 0 comments

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.

dnna avatar Dec 18 '12 02:12 dnna