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