/** * @param Comment $comment */ public function addComment(Comment $comment) { if (!$this->comments->contains($comment)) { $this->comments->add($comment); $comment->setAnswer($this); } }
public function addComment(Comment $comment) { $this->comments->add($comment); $comment->setPost($this); }
/** * @param Comment $comment */ public function addComment(Comment $comment) { $this->comments->add($comment); }