示例#1
0
文件: Cart.php 项目: alex63530/thelia
 /**
  * Declares an association between this object and a ChildAddress object.
  *
  * @param                  ChildAddress $v
  * @return                 \Thelia\Model\Cart The current object (for fluent API support)
  * @throws PropelException
  */
 public function setAddressRelatedByAddressDeliveryId(ChildAddress $v = null)
 {
     if ($v === null) {
         $this->setAddressDeliveryId(NULL);
     } else {
         $this->setAddressDeliveryId($v->getId());
     }
     $this->aAddressRelatedByAddressDeliveryId = $v;
     // Add binding for other direction of this n:n relationship.
     // If this object has already been added to the ChildAddress object, it will not be re-added.
     if ($v !== null) {
         $v->addCartRelatedByAddressDeliveryId($this);
     }
     return $this;
 }