/** * Get the associated Sale object * * @param PropelPDO Optional Connection object. * @return Sale The associated Sale object. * @throws PropelException */ public function getSale(PropelPDO $con = null) { if ($this->aSale === null && $this->sale_id !== null) { $this->aSale = SalePeer::retrieveByPk($this->sale_id); /* 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->aSale->addProductHasSales($this); */ } return $this->aSale; }