/**
  * Filter the query by a related \RatingCategoryOptions object
  *
  * @param \RatingCategoryOptions|ObjectCollection $ratingCategoryOptions 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 ChildRatingCategoryValuesQuery The current query, for fluid interface
  */
 public function filterByRatingCategoryOptions($ratingCategoryOptions, $comparison = null)
 {
     if ($ratingCategoryOptions instanceof \RatingCategoryOptions) {
         return $this->addUsingAlias(RatingCategoryValuesTableMap::COL_RATING_CATEGORY_OPTION_ID, $ratingCategoryOptions->getId(), $comparison);
     } elseif ($ratingCategoryOptions instanceof ObjectCollection) {
         if (null === $comparison) {
             $comparison = Criteria::IN;
         }
         return $this->addUsingAlias(RatingCategoryValuesTableMap::COL_RATING_CATEGORY_OPTION_ID, $ratingCategoryOptions->toKeyValue('PrimaryKey', 'Id'), $comparison);
     } else {
         throw new PropelException('filterByRatingCategoryOptions() only accepts arguments of type \\RatingCategoryOptions or Collection');
     }
 }