function getSfReviewStatus() { if (!$this->sf_review_status) { $this->sf_review_status = SfReviewStatusPeer::retrieveByPk($this->sf_review_status_id); } return $this->sf_review_status; }
/** * Get the associated SfReviewStatus object * * @param PropelPDO Optional Connection object. * @return SfReviewStatus The associated SfReviewStatus object. * @throws PropelException */ public function getSfReviewStatus(PropelPDO $con = null) { if ($this->aSfReviewStatus === null && $this->sf_review_status_id !== null) { $this->aSfReviewStatus = SfReviewStatusPeer::retrieveByPk($this->sf_review_status_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->aSfReviewStatus->addSfReviews($this); */ } return $this->aSfReviewStatus; }