/** * Get the associated WingJob object * * @param PropelPDO Optional Connection object. * @return WingJob The associated WingJob object. * @throws PropelException */ public function getWingJob(PropelPDO $con = null) { if ($this->aWingJob === null && $this->wing_job_id !== null) { $c = new Criteria(WingJobPeer::DATABASE_NAME); $c->add(WingJobPeer::ID, $this->wing_job_id); $this->aWingJob = WingJobPeer::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->aWingJob->addMemberWingJobs($this); */ } return $this->aWingJob; }