/** * @param ChildRatingCategoryOptions $ratingCategoryOptions The ChildRatingCategoryOptions object to add. */ protected function doAddRatingCategoryOptions(ChildRatingCategoryOptions $ratingCategoryOptions) { $this->collRatingCategoryOptionss[] = $ratingCategoryOptions; $ratingCategoryOptions->setRatingCategories($this); }
/** * Filter the query by a related \RatingCategoryOptions object * * @param \RatingCategoryOptions|ObjectCollection $ratingCategoryOptions the related object to use as filter * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * * @return ChildRatingCategoriesQuery The current query, for fluid interface */ public function filterByRatingCategoryOptions($ratingCategoryOptions, $comparison = null) { if ($ratingCategoryOptions instanceof \RatingCategoryOptions) { return $this->addUsingAlias(RatingCategoriesTableMap::COL_ID, $ratingCategoryOptions->getRatingCategoryId(), $comparison); } elseif ($ratingCategoryOptions instanceof ObjectCollection) { return $this->useRatingCategoryOptionsQuery()->filterByPrimaryKeys($ratingCategoryOptions->getPrimaryKeys())->endUse(); } else { throw new PropelException('filterByRatingCategoryOptions() only accepts arguments of type \\RatingCategoryOptions or Collection'); } }
/** * 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'); } }
/** * Clears the current object, sets all attributes to their default values and removes * outgoing references as well as back-references (from other objects to this one. Results probably in a database * change of those foreign objects when you call `save` there). */ public function clear() { if (null !== $this->aRatingHeaders) { $this->aRatingHeaders->removeRatingCategoryValues($this); } if (null !== $this->aRatingCategories) { $this->aRatingCategories->removeRatingCategoryValues($this); } if (null !== $this->aRatingCategoryOptions) { $this->aRatingCategoryOptions->removeRatingCategoryValues($this); } $this->id = null; $this->rating_header_id = null; $this->rating_category_id = null; $this->rating_category_option_id = null; $this->original_value = null; $this->original_weighted_value = null; $this->comments = null; $this->alreadyInSave = false; $this->clearAllReferences(); $this->resetModified(); $this->setNew(true); $this->setDeleted(false); }