Example #1
0
 /**
  * Get the associated MissionReport object
  *
  * @param      PropelPDO Optional Connection object.
  * @return     MissionReport The associated MissionReport object.
  * @throws     PropelException
  */
 public function getMissionReport(PropelPDO $con = null)
 {
     if ($this->aMissionReport === null && $this->mission_report_id !== null) {
         $c = new Criteria(MissionReportPeer::DATABASE_NAME);
         $c->add(MissionReportPeer::ID, $this->mission_report_id);
         $this->aMissionReport = MissionReportPeer::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->aMissionReport->addMissionLegs($this);
         		 */
     }
     return $this->aMissionReport;
 }