Beispiel #1
0
 /**
  * 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 ChildUserQuery The current query, for fluid interface
  */
 public function filterBySocialComment($socialComment, $comparison = null)
 {
     if ($socialComment instanceof \App\Propel\SocialComment) {
         return $this->addUsingAlias(UserTableMap::COL_USER_ID, $socialComment->getUserId(), $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');
     }
 }