Código PHP:
$query = $em->createQuery("SELECT a FROM ABCAdmissionBundle:SchoolUseSubject a");
$subjects = $query->getResult();
foreach ($subjects as $subject){
$materia = $subject->getSubject();
$SchoolUseResultstmp = new SchoolUseResults();
$f = new SchoolUseResultsType();
$f->setName('subjec_'.$subject->getId());
$form_subjectstmp = $this->createForm($f, $SchoolUseResultstmp);
$form_subjectstmp->bind($request);
$SchoolUseResultstmp->setSubject($materia);
array_push($resultsubjects,$SchoolUseResultstmp);
$form_subjects[$materia] = $form_subjectstmp->createView();
}