/**
  * Creates a form to delete a Course entity.
  *
  * @param Course $course The Course entity
  *
  * @return \Symfony\Component\Form\Form The form
  */
 private function createDeleteForm(Course $course)
 {
     return $this->createFormBuilder()->setAction($this->generateUrl('admin_course_delete', array('id' => $course->getId())))->setMethod('DELETE')->getForm();
 }