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