/** * {@inheritDoc} */ public function __toString() { $this->__initializer__ && $this->__initializer__->__invoke($this, '__toString', []); return parent::__toString(); }
/** * Creates a form to delete a Anuncios entity. * * @param Anuncios $anuncio The Anuncios entity * * @return \Symfony\Component\Form\Form The form */ private function createDeleteForm(Anuncios $anuncio) { return $this->createFormBuilder()->setAction($this->generateUrl('anuncios_delete', array('id' => $anuncio->getId())))->setMethod('DELETE')->getForm(); }