public function addComment(Comment $comment) { $this->comments->add($comment); $comment->setPost($this); }
/** * {@inheritDoc} */ public function addComment(\AppBundle\Entity\Comment $comments) { $this->__initializer__ && $this->__initializer__->__invoke($this, 'addComment', array($comments)); return parent::addComment($comments); }