/** * @param ChildSocialComment $socialComment The ChildSocialComment object to add. */ protected function doAddSocialComment(ChildSocialComment $socialComment) { $this->collSocialComments[] = $socialComment; $socialComment->setUser($this); }
/** * Filter the query by a related \App\Propel\SocialComment object * * @param \App\Propel\SocialComment|ObjectCollection $socialComment the related object to use as filter * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * * @return ChildResourceQuery The current query, for fluid interface */ public function filterBySocialComment($socialComment, $comparison = null) { if ($socialComment instanceof \App\Propel\SocialComment) { return $this->addUsingAlias(ResourceTableMap::COL_RESOURCE_ID, $socialComment->getSocialCommentFor(), $comparison); } elseif ($socialComment instanceof ObjectCollection) { return $this->useSocialCommentQuery()->filterByPrimaryKeys($socialComment->getPrimaryKeys())->endUse(); } else { throw new PropelException('filterBySocialComment() only accepts arguments of type \\App\\Propel\\SocialComment or Collection'); } }
/** * Exclude object from result * * @param ChildSocialComment $socialComment Object to remove from the list of results * * @return $this|ChildSocialCommentQuery The current query, for fluid interface */ public function prune($socialComment = null) { if ($socialComment) { $this->addUsingAlias(SocialCommentTableMap::COL_SOCIAL_COMMENT_ID, $socialComment->getSocialCommentId(), Criteria::NOT_EQUAL); } return $this; }