/** * Declares an association between this object and a ChildProductVariation object. * * @param ChildProductVariation $v * @return $this|\App\Propel\OrderProduct The current object (for fluent API support) * @throws PropelException */ public function setProductVariation(ChildProductVariation $v = null) { if ($v === null) { $this->setProductVariationId(NULL); } else { $this->setProductVariationId($v->getProductVariationId()); } $this->aProductVariation = $v; // Add binding for other direction of this n:n relationship. // If this object has already been added to the ChildProductVariation object, it will not be re-added. if ($v !== null) { $v->addOrderProduct($this); } return $this; }