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