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