Пример #1
0
 /**
  * Declares an association between this object and a NagiosHostTemplate object.
  *
  * @param      NagiosHostTemplate $v
  * @return     NagiosDependency The current object (for fluent API support)
  * @throws     PropelException
  */
 public function setNagiosHostTemplate(NagiosHostTemplate $v = null)
 {
     if ($v === null) {
         $this->setHostTemplate(NULL);
     } else {
         $this->setHostTemplate($v->getId());
     }
     $this->aNagiosHostTemplate = $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->addNagiosDependency($this);
     }
     return $this;
 }