Answer the question
In order to leave comments, you need to log in
Symfony 2: Building a form with related entities
Example: There are three related entities: posts, comments, replies to comments.
Approximate connection: Post[comments] -> Comment[answers] -> Answer
Question: How to make a form in which you can edit / add comments and answers to them?
Answer the question
In order to leave comments, you need to log in
Clarification: I need a hint on how to use Form\Type (FormBuilderInterface, AbstractType) to make a connection between these three entities so that the template can use loop and form_row to display the edit elements of the data described above.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question