public function preUpdate(PropelPDO $con = null) { if (!$this->alreadyInSave) { BatchJobPeer::preBatchJobUpdate($this); } $this->updateDerivedFields(); if (BatchJobLockPeer::shouldUpdateLockObject($this, $con)) { BatchJobLockPeer::updateLockObject($this, $con); } if (BatchJobLockPeer::shouldDeleteLockObject($this, $con)) { $batchJobLock = $this->getBatchJobLock($con); $batchJobLock->delete($con); $this->setBatchJobLock(null); } return parent::preUpdate($con); }