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