/** * Test constructor. */ public function testConstruct() { $this->assertNull($this->vote->getAnnuaire()); $this->assertNull($this->vote->getCreated()); $this->assertNull($this->vote->getId()); $this->assertNull($this->vote->getSite()); $this->assertNull($this->vote->getTracker()); $this->assertNull($this->vote->getUser()); }
/** * Creates a form to delete a Vote entity. * * @param Vote $vote The Vote entity * * @return \Symfony\Component\Form\Form The form */ private function createDeleteForm(Vote $vote) { return $this->createFormBuilder()->setAction($this->generateUrl('vote_delete', array('id' => $vote->getId())))->setMethod('DELETE')->getForm(); }
/** * {@inheritDoc} */ public function getId() { if ($this->__isInitialized__ === false) { return (int) parent::getId(); } $this->__initializer__ && $this->__initializer__->__invoke($this, 'getId', []); return parent::getId(); }