/** * Get the associated Offer object * * @param PropelPDO Optional Connection object. * @return Offer The associated Offer object. * @throws PropelException */ public function getOffer(PropelPDO $con = null) { if ($this->aOffer === null && $this->offer_id !== null) { $c = new Criteria(OfferPeer::DATABASE_NAME); $c->add(OfferPeer::ID, $this->offer_id); $this->aOffer = OfferPeer::doSelectOne($c, $con); /* The following can be used additionally to guarantee the related object contains a reference to this object. This level of coupling may, however, be undesirable since it could result in an only partially populated collection in the referenced object. $this->aOffer->addCustomers($this); */ } return $this->aOffer; }