jordillonch / CrudGeneratorBundle

This Symfony2 bundle aims to be the bundle that you are looking for create a nice CRUD with pagination, filter, translation and Twitter bootstrap 2.2.2 features.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Filter with relation OneToMany : it's possible ?

Zamoud opened this issue · comments

//Xyzbundle/Form/ProductFilterType.php

class ProductFilterType extends AbstractType
{
    public function buildForm(FormBuilderInterface $builder, array $options)
    {
        $builder
            ->add('id', 'filter_number_range')
            .......
            ->add('category', 'filter_text')//### from Category entity  ####
      .....
   }
}

return

Semantical Error] line 0, col 62 near 'category': Error: Invalid PathExpression. Must be a StateFieldPathExpression.

thank you very much :)