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