Esempio n. 1
0
 /**
  * Get the associated PilotRequest object
  *
  * @param      PropelPDO Optional Connection object.
  * @return     PilotRequest The associated PilotRequest object.
  * @throws     PropelException
  */
 public function getPilotRequest(PropelPDO $con = null)
 {
     if ($this->aPilotRequest === null && $this->pilot_request_id !== null) {
         $c = new Criteria(PilotRequestPeer::DATABASE_NAME);
         $c->add(PilotRequestPeer::ID, $this->pilot_request_id);
         $this->aPilotRequest = PilotRequestPeer::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->aPilotRequest->addPilotDates($this);
         		 */
     }
     return $this->aPilotRequest;
 }