aCart === null && ($this->id !== null)) { $this->aCart = CartQuery::create()->findPk($this->id, $con); } return $this->aCart; } /** * Declares an association between this object and a ChildCart object. * * @param Cart $cart * @return \PayPal\Model\PaypalCart The current object (for fluent API support) * @throws PropelException */ public function setCart(Cart $cart = null) { if ($cart === null) { $this->setId(NULL); } else { $this->setId($cart->getId()); } $this->aCart = $cart; return $this; } }