/** * Bypass the soft_delete behavior and force a hard delete of the current object */ public function forceDelete(PropelPDO $con = null) { if ($isSoftDeleteEnabled = CotisationPeer::isSoftDeleteEnabled()) { CotisationPeer::disableSoftDelete(); } $this->delete($con); if ($isSoftDeleteEnabled) { CotisationPeer::enableSoftDelete(); } }
/** * Delete or soft delete all records, depending on CotisationPeer::$softDelete * * @param PropelPDO $con the connection to use * @return int The number of affected rows (if supported by underlying database driver). * @throws PropelException Any exceptions caught during processing will be * rethrown wrapped into a PropelException. */ public static function doDeleteAll(PropelPDO $con = null) { if (CotisationPeer::isSoftDeleteEnabled()) { return CotisationPeer::doSoftDeleteAll($con); } else { return CotisationPeer::doForceDeleteAll($con); } }
/** * Bypass the soft_delete behavior and force a hard delete of all the rows * * @param PropelPDO $con an optional connection object * * @return int Number of deleted rows */ public function forceDeleteAll(PropelPDO $con = null) { return CotisationPeer::doForceDeleteAll($con); }