Exemplo n.º 1
0
 /**
  * Declares an association between this object and a BatchJobLock object.
  *
  * @param      BatchJobLock $v
  * @return     BatchJob The current object (for fluent API support)
  * @throws     PropelException
  */
 public function setBatchJobLock(BatchJobLock $v = null)
 {
     if ($v === null) {
         $this->setBatchJobLockId(NULL);
     } else {
         $this->setBatchJobLockId($v->getId());
     }
     $this->aBatchJobLock = $v;
     // Add binding for other direction of this n:n relationship.
     // If this object has already been added to the BatchJobLock object, it will not be re-added.
     if ($v !== null) {
         $v->addBatchJob($this);
     }
     return $this;
 }