コード例 #1
0
ファイル: Order.php プロジェクト: shirone/thelia
 /**
  * Declares an association between this object and a ChildOrderAddress object.
  *
  * @param                  ChildOrderAddress $v
  * @return                 \Thelia\Model\Order The current object (for fluent API support)
  * @throws PropelException
  */
 public function setOrderAddressRelatedByInvoiceOrderAddressId(ChildOrderAddress $v = null)
 {
     if ($v === null) {
         $this->setInvoiceOrderAddressId(NULL);
     } else {
         $this->setInvoiceOrderAddressId($v->getId());
     }
     $this->aOrderAddressRelatedByInvoiceOrderAddressId = $v;
     // Add binding for other direction of this n:n relationship.
     // If this object has already been added to the ChildOrderAddress object, it will not be re-added.
     if ($v !== null) {
         $v->addOrderRelatedByInvoiceOrderAddressId($this);
     }
     return $this;
 }