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