示例#1
0
文件: BaseSales.php 项目: rayku/rayku
 /**
  * Declares an association between this object and a OfferVoucher1 object.
  *
  * @param      OfferVoucher1 $v
  * @return     Sales The current object (for fluent API support)
  * @throws     PropelException
  */
 public function setOfferVoucher1(OfferVoucher1 $v = null)
 {
     if ($v === null) {
         $this->setOfferVoucherId(NULL);
     } else {
         $this->setOfferVoucherId($v->getId());
     }
     $this->aOfferVoucher1 = $v;
     // Add binding for other direction of this n:n relationship.
     // If this object has already been added to the OfferVoucher1 object, it will not be re-added.
     if ($v !== null) {
         $v->addSales($this);
     }
     return $this;
 }