Ejemplo n.º 1
0
 /**
  * Creates a form to delete a DataSource entity.
  *
  * @param DataSource $dataSource The DataSource entity
  *
  * @return \Symfony\Component\Form\Form The form
  */
 private function createDeleteForm(DataSource $dataSource)
 {
     return $this->createFormBuilder()->setAction($this->generateUrl('datasource_delete', array('id' => $dataSource->getId())))->setMethod('DELETE')->getForm();
 }