diff --git a/README.md b/README.md index 13ea4af..59f9c58 100644 --- a/README.md +++ b/README.md @@ -192,6 +192,30 @@ class MediaCrudController extends AbstractCategorizedCrudController } ``` +If you wish to use the tree field with a ManyToMany relation, just set field attribute `multiple` to true : +```php +setFormTypeOption('multiple', true), + // ... + ]; + } +``` + ### Screenshots Tree structure on index page  diff --git a/Resources/views/form/themes/tree.html.twig b/Resources/views/form/themes/tree.html.twig index 4da9d8f..4ceb8b7 100644 --- a/Resources/views/form/themes/tree.html.twig +++ b/Resources/views/form/themes/tree.html.twig @@ -1,6 +1,7 @@ {% block tree_field_widget %}