/** * Exclude object from result * * @param ChildComment $comment Object to remove from the list of results * * @return $this|ChildCommentQuery The current query, for fluid interface */ public function prune($comment = null) { if ($comment) { $this->addUsingAlias(CommentTableMap::COL_ID, $comment->getId(), Criteria::NOT_EQUAL); } return $this; }