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