/** * Get the associated BatchJobLock object * * @param PropelPDO Optional Connection object. * @return BatchJobLock The associated BatchJobLock object. * @throws PropelException */ public function getBatchJobLock(PropelPDO $con = null) { if ($this->aBatchJobLock === null && $this->batch_job_lock_id !== null) { $this->aBatchJobLock = BatchJobLockPeer::retrieveByPk($this->batch_job_lock_id); /* The following can be used additionally to guarantee the related object contains a reference to this object. This level of coupling may, however, be undesirable since it could result in an only partially populated collection in the referenced object. $this->aBatchJobLock->addBatchJobs($this); */ } return $this->aBatchJobLock; }