/** * Filter the query by a related \RatingHeader object * * @param \RatingHeader|ObjectCollection $ratingHeader The related object(s) to use as filter * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * * @throws \Propel\Runtime\Exception\PropelException * * @return ChildRatingValueQuery The current query, for fluid interface */ public function filterByRatingHeader($ratingHeader, $comparison = null) { if ($ratingHeader instanceof \RatingHeader) { return $this->addUsingAlias(RatingValueTableMap::COL_RATING_HEADER_ID, $ratingHeader->getId(), $comparison); } elseif ($ratingHeader instanceof ObjectCollection) { if (null === $comparison) { $comparison = Criteria::IN; } return $this->addUsingAlias(RatingValueTableMap::COL_RATING_HEADER_ID, $ratingHeader->toKeyValue('PrimaryKey', 'Id'), $comparison); } else { throw new PropelException('filterByRatingHeader() only accepts arguments of type \\RatingHeader or Collection'); } }