/** * Filter the query by a related \RatingValue object * * @param \RatingValue|ObjectCollection $ratingValue the related object to use as filter * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * * @return ChildRatingHeaderQuery The current query, for fluid interface */ public function filterByRatingValue($ratingValue, $comparison = null) { if ($ratingValue instanceof \RatingValue) { return $this->addUsingAlias(RatingHeaderTableMap::COL_ID, $ratingValue->getRatingHeaderId(), $comparison); } elseif ($ratingValue instanceof ObjectCollection) { return $this->useRatingValueQuery()->filterByPrimaryKeys($ratingValue->getPrimaryKeys())->endUse(); } else { throw new PropelException('filterByRatingValue() only accepts arguments of type \\RatingValue or Collection'); } }