/** * Get the associated Camp object * * @param PropelPDO Optional Connection object. * @return Camp The associated Camp object. * @throws PropelException */ public function getCamp(PropelPDO $con = null) { if ($this->aCamp === null && $this->group_camp_id !== null) { $c = new Criteria(CampPeer::DATABASE_NAME); $c->add(CampPeer::ID, $this->group_camp_id); $this->aCamp = CampPeer::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->aCamp->addPilotRequests($this); */ } return $this->aCamp; }