I have two entities Employee and EmployeeJob. I want to make a single form using fields from both entities. I have already made the corresponding form types for both the entities using doctrine form generator. Individually, both the forms re working fine. I want to combine them into a single form. I had gone through so many websites and I dont find the following piece of code useful which returns multiple form types from the controller
return array(
'form1' => $form->createView(),
'form2' => $form->createView(),
);