/** * Declares an association between this object and a ChildRatingHeader object. * * @param ChildRatingHeader $v * @return $this|\RatingValue The current object (for fluent API support) * @throws PropelException */ public function setRatingHeader(ChildRatingHeader $v = null) { if ($v === null) { $this->setRatingHeaderId(NULL); } else { $this->setRatingHeaderId($v->getId()); } $this->aRatingHeader = $v; // Add binding for other direction of this n:n relationship. // If this object has already been added to the ChildRatingHeader object, it will not be re-added. if ($v !== null) { $v->addRatingValue($this); } return $this; }