Answer the question
In order to leave comments, you need to log in
How to implement form in Symfony2 for tree structure?
Rather, it is not the implementation of the form itself that is of interest (everything is simple there), but its processing, given that elements can be deleted, changed and moved.
Answer the question
In order to leave comments, you need to log in
An example of forms can be viewed/examined here:
github.com/beberlei/AcmePizzaBundle
There is no tree, but there is an addition/removal of elements. Moving is the same change (hidden field). In general, for starters, it would be nice to learn about the prototype attribute and how to deal with it.
However, I wouldn't recommend using Symfony Forms for this task (or any huge form in general) unless validation is required. Current forms slow down, and source codes are difficult to debug.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question