/** * Add comments * * @param \MeVisa\ERPBundle\Entity\OrderComments $comments * @return User */ public function addComment(\MeVisa\ERPBundle\Entity\OrderComments $comments) { $this->comments[] = $comments; $comments->setAuthor($this); return $this; }