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