T
T
Think With Your Head2016-08-29 22:31:32
symfony
Think With Your Head, 2016-08-29 22:31:32

How to make one form from the many to one relation in symphony?

Hello.
The task seems to be simple, and I read the documentation, but I can not understand one thing.
There is a user entity and a company entity.
Company has multiple Users (one to many).
I want to create an empty form with two fields:
user_name (belongs to the User class)
company_name (belongs to the Company class)
How to use formBuilder for such a form?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question