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