/** * Get the associated Activity object * * @param PropelPDO Optional Connection object. * @return Activity The associated Activity object. * @throws PropelException */ public function getActivity(PropelPDO $con = null) { if ($this->aActivity === null && $this->activity_id !== null) { $c = new Criteria(ActivityPeer::DATABASE_NAME); $c->add(ActivityPeer::ID, $this->activity_id); $this->aActivity = ActivityPeer::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->aActivity->addActivityHasFeatures($this); */ } return $this->aActivity; }