/** * Add vote * * @param \AppBundle\Entity\Decklist $vote * * @return User */ public function addVote(\AppBundle\Entity\Decklist $vote) { $vote->addVote($this); $this->votes[] = $vote; return $this; }