/**
  * Filter the query by a related \Comment object
  *
  * @param \Comment|ObjectCollection $comment  the related object to use as filter
  * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return ChildEventQuery The current query, for fluid interface
  */
 public function filterByComment($comment, $comparison = null)
 {
     if ($comment instanceof \Comment) {
         return $this->addUsingAlias(EventTableMap::COL_EVENT_ID, $comment->getTargetEventId(), $comparison);
     } elseif ($comment instanceof ObjectCollection) {
         return $this->useCommentQuery()->filterByPrimaryKeys($comment->getPrimaryKeys())->endUse();
     } else {
         throw new PropelException('filterByComment() only accepts arguments of type \\Comment or Collection');
     }
 }
 /**
  * @param ChildComment $comment The ChildComment object to add.
  */
 protected function doAddComment(ChildComment $comment)
 {
     $this->collComments[] = $comment;
     $comment->setAuthor($this);
 }
 /**
  * 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_COMMENT_ID, $comment->getCommentId(), Criteria::NOT_EQUAL);
     }
     return $this;
 }
 /**
  * @param ChildComment $comment The ChildComment object to add.
  */
 protected function doAddComment(ChildComment $comment)
 {
     $this->collComments[] = $comment;
     $comment->setTarget_Event($this);
 }