aOrder === null && ($this->id !== null)) { $this->aOrder = OrderQuery::create()->findPk($this->id, $con); } return $this->aOrder; } /** * Declares an association between this object and a ChildOrder object. * * @param Order $order * @return \PayPal\Model\PaypalOrder The current object (for fluent API support) * @throws PropelException */ public function setOrder(Order $order = null) { if ($order === null) { $this->setId(NULL); } else { $this->setId($order->getId()); } $this->aOrder = $order; return $this; } }