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