/** * 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; }