Symfony 4.1 tree view form without plugins
0
How can I get to display elements in the EntityType control in the following way: Group 1 parent - child -- second_child - child - child -- second_child Group 2 parent - child -- second_child ------third_child parent - child I have a table that has a relation to itself, this entity have the parent field which defines the parent and children field for next child elements, the level field which determines the depth of nesting. I tried to manually fill in the array with the elements in such a structure but it did not write to the database: $data = ; $data = ['Group 1']['parent'] = $entityElement; $data = ['Group 1']['- child'] = $entityElement->getChildren()[0]; $data = ['Group 1']['-- second_child'] = $entityElement-&