/** * Get the associated RefSource object * * @param PropelPDO Optional Connection object. * @return RefSource The associated RefSource object. * @throws PropelException */ public function getRefSource(PropelPDO $con = null) { if ($this->aRefSource === null && $this->ref_source_id !== null) { $c = new Criteria(RefSourcePeer::DATABASE_NAME); $c->add(RefSourcePeer::ID, $this->ref_source_id); $this->aRefSource = RefSourcePeer::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->aRefSource->addContacts($this); */ } return $this->aRefSource; }