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