/** * Creates a form to delete a Badge entity. * * @param Adventure $adventure The Badge entity * * @return Form The form */ private function createDeleteForm(Adventure $adventure) { return $this->createFormBuilder()->setAction($this->generateUrl('admin_adventure_delete', ['id' => $adventure->getId()]))->setMethod('DELETE')->getForm(); }
/** * {@inheritdoc} */ public function create() { $adventure = new Adventure(); $adventure->addStep(new AdventureStep()); return $adventure; }