public function getReligion($con = null) { include_once 'lib/model/om/BaseReligionPeer.php'; if ($this->aReligion === null && $this->religion_id !== null) { $this->aReligion = ReligionPeer::retrieveByPK($this->religion_id, $con); } return $this->aReligion; }
public function getReligionRelatedBySpouseReligionId($con = null) { include_once 'lib/model/om/BaseReligionPeer.php'; if ($this->aReligionRelatedBySpouseReligionId === null && $this->spouse_religion_id !== null) { $this->aReligionRelatedBySpouseReligionId = ReligionPeer::retrieveByPK($this->spouse_religion_id, $con); } return $this->aReligionRelatedBySpouseReligionId; }