/** * Get the associated PassengerIllnessCategory object * * @param PropelPDO Optional Connection object. * @return PassengerIllnessCategory The associated PassengerIllnessCategory object. * @throws PropelException */ public function getPassengerIllnessCategory(PropelPDO $con = null) { if ($this->aPassengerIllnessCategory === null && $this->passenger_illness_category_id !== null) { $c = new Criteria(PassengerIllnessCategoryPeer::DATABASE_NAME); $c->add(PassengerIllnessCategoryPeer::ID, $this->passenger_illness_category_id); $this->aPassengerIllnessCategory = PassengerIllnessCategoryPeer::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->aPassengerIllnessCategory->addPassengers($this); */ } return $this->aPassengerIllnessCategory; }