Example #1
0
 /**
  * Declares an association between this object and a ChildTaxRule object.
  *
  * @param                  ChildTaxRule $v
  * @return                 \Thelia\Model\Product The current object (for fluent API support)
  * @throws PropelException
  */
 public function setTaxRule(ChildTaxRule $v = null)
 {
     if ($v === null) {
         $this->setTaxRuleId(NULL);
     } else {
         $this->setTaxRuleId($v->getId());
     }
     $this->aTaxRule = $v;
     // Add binding for other direction of this n:n relationship.
     // If this object has already been added to the ChildTaxRule object, it will not be re-added.
     if ($v !== null) {
         $v->addProduct($this);
     }
     return $this;
 }