public function deleteGuides($sProcessUID = '') { try { $oProcess = new Process(); $aFields = $oProcess->load($sProcessUID); $oCriteria = new Criteria('workflow'); $oCriteria->add(SwimlanesElementsPeer::PRO_UID, $sProcessUID); $oCriteria->add(SwimlanesElementsPeer::SWI_TYPE, 'LINE'); SwimlanesElementsPeer::doDelete($oCriteria); return true; } catch (Exception $oError) { throw $oError; } }
/** * Removes this object from datastore and sets delete attribute. * * @param Connection $con * @return void * @throws PropelException * @see BaseObject::setDeleted() * @see BaseObject::isDeleted() */ public function delete($con = null) { if ($this->isDeleted()) { throw new PropelException("This object has already been deleted."); } if ($con === null) { $con = Propel::getConnection(SwimlanesElementsPeer::DATABASE_NAME); } try { $con->begin(); SwimlanesElementsPeer::doDelete($this, $con); $this->setDeleted(true); $con->commit(); } catch (PropelException $e) { $con->rollback(); throw $e; } }