Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Many-to-many in form_filter #93

Open
treeindark opened this issue Jan 25, 2019 · 1 comment
Open

Many-to-many in form_filter #93

treeindark opened this issue Jan 25, 2019 · 1 comment
Labels

Comments

@treeindark
Copy link

treeindark commented Jan 25, 2019

Hello,

I've add 2 form_filter

but only 1 appear
the first is a select for a status field, OK (only is not a toggle but a select list)
the second is a manyToMany I've trying 3 methods

form_filters:
 
     - status
     - { property: categories, type_options: { choices: { Categorie: categorie } } }
     - { property: categories, type_options: { choices: { Categorie: name} } }
     - categories

I add trait (ValueListTrait) in my Entity (parent entity), but nothing work.

I use 2.0.3 /symfony 4.2.2

Thank You!

@alterphp
Copy link
Owner

*-to-many associations are not filterable yet. This is in TODO list.

@alterphp alterphp changed the title form_filter Many-to-many in form_filter Jan 28, 2019
@alterphp alterphp added the todo label Jan 31, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants