EasyAdminExtensionBundle icon indicating copy to clipboard operation
EasyAdminExtensionBundle copied to clipboard

Many-to-many in form_filter

Open treeindark opened this issue 6 years ago • 1 comments

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!

treeindark avatar Jan 25 '19 12:01 treeindark

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

alterphp avatar Jan 28 '19 09:01 alterphp