/** * 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 setOrderAddressRelatedByDeliveryOrderAddressId(ChildOrderAddress $v = null) { if ($v === null) { $this->setDeliveryOrderAddressId(NULL); } else { $this->setDeliveryOrderAddressId($v->getId()); } $this->aOrderAddressRelatedByDeliveryOrderAddressId = $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->addOrderRelatedByDeliveryOrderAddressId($this); } return $this; }