aCustomer === null && ($this->id !== null)) { $this->aCustomer = CustomerQuery::create()->findPk($this->id, $con); } return $this->aCustomer; } /** * Declares an association between this object and a ChildCustomer object. * * @param Customer $customer * @return \PayPal\Model\PaypalCustomer The current object (for fluent API support) * @throws PropelException */ public function setCustomer(Customer $customer = null) { if ($customer === null) { $this->setId(NULL); } else { $this->setId($customer->getId()); } $this->aCustomer = $customer; return $this; } }