/** * Get the associated Airport object * * @param PropelPDO Optional Connection object. * @return Airport The associated Airport object. * @throws PropelException */ public function getAirport(PropelPDO $con = null) { if ($this->aAirport === null && $this->airport_id !== null) { $c = new Criteria(AirportPeer::DATABASE_NAME); $c->add(AirportPeer::ID, $this->airport_id); $this->aAirport = AirportPeer::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->aAirport->addCamps($this); */ } return $this->aAirport; }