title: How to create a unique form using multiple entities fields in symfony2
body: <p>I want to create a form using some fields from multiple entities. I have all the distinct entites needed already created and i am not using form classes. I need to know how to do to render a form and handle its data so i can save them to the correct tables in my database.</p>
  
  <p>Here is a part of my controller in charge of doing that</p>
  
  <pre><code>public function createPublicSpaceAction() {
      //My entities
      $Room = new Room();
      $GuestList = new GuestList();
      $Guest = new Guest();
  
      //I need to know what to do from here
  
      return $this -&gt; render('AcmeUserBundle:Default:Forms/createPublicSpace.html.twig', array());
  }
  </code></pre>
  
  <p>I kept trying to find a solution and i came up with the idea that one form needs one entity. So maybe the solution would be to merge those entities in one so i can build the form easily. I would then have to persist data to corresponding tables. But i can't think of how to merge entities.</p>