/** * Declares an association between this object and a RefSource object. * * @param RefSource $v * @return Application The current object (for fluent API support) * @throws PropelException */ public function setRefSource(RefSource $v = null) { if ($v === null) { $this->setReferralSource(NULL); } else { $this->setReferralSource($v->getId()); } $this->aRefSource = $v; // Add binding for other direction of this n:n relationship. // If this object has already been added to the RefSource object, it will not be re-added. if ($v !== null) { $v->addApplication($this); } return $this; }