Esempio n. 1
0
 /**
  * @Route("/education", name="admin_education")
  * @Method({"GET"})
  * 
  * @Template
  */
 public function educationAction()
 {
     $educationTableView = new EducationTableView();
     $education = $this->getDoctrine()->getRepository('CorvusAdminBundle:Education')->findAll();
     foreach ($education as $edu) {
         $educationTableView->getEducation()->add($edu);
     }
     $form = $this->createForm(new EducationTableViewType(), $educationTableView);
     return array('form' => $form->createView());
 }