Good, I have an entity that is Users and another that is Cars, in the entities I have since 1 User can have N Cars, I have the relationship onetomany and manytoone respectively.
Then I have created the type forms of both, where you can create a user and on the other hand create a car and never connect them. But there is a third option that from the form of user creation through an ArrayCollection of Users to Cars allow you to create as many cars as you want for that user.
Visually what the form does is display the user fields first and then a "+" button where for each click you create a form of cars and let you fill it out, when you give the save you save 1 single user and as many cars as you have put (this works perfectly)
What I can not do is that when performing the action of creating a user that this is in the UserController and the action is newAction, here what I do is create a form of type User (UserType) that in turn has an ArrayCollection creates so many forms of the Car type (CarType), because I would like that in this form of car type does not appear a field in particular.
I do not put any code since I do not know how to do it and that's why I ask for your help. Thanks