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