/** * Exclude object from result * * @param ChildRatingCategoryOptions $ratingCategoryOptions Object to remove from the list of results * * @return $this|ChildRatingCategoryOptionsQuery The current query, for fluid interface */ public function prune($ratingCategoryOptions = null) { if ($ratingCategoryOptions) { $this->addUsingAlias(RatingCategoryOptionsTableMap::COL_ID, $ratingCategoryOptions->getId(), Criteria::NOT_EQUAL); } return $this; }
/** * 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'); } }
/** * Declares an association between this object and a ChildRatingCategoryOptions object. * * @param ChildRatingCategoryOptions $v * @return $this|\RatingCategoryValues The current object (for fluent API support) * @throws PropelException */ public function setRatingCategoryOptions(ChildRatingCategoryOptions $v = null) { if ($v === null) { $this->setRatingCategoryOptionId(NULL); } else { $this->setRatingCategoryOptionId($v->getId()); } $this->aRatingCategoryOptions = $v; // Add binding for other direction of this n:n relationship. // If this object has already been added to the ChildRatingCategoryOptions object, it will not be re-added. if ($v !== null) { $v->addRatingCategoryValues($this); } return $this; }