/** * Remove comment * * @param \AppBundle\Entity\Comment $comment */ public function removeComment(\AppBundle\Entity\Comment $comment) { $this->comments->removeElement($comment); }