/** * Delete or soft delete records, depending on CotisationPeer::$softDelete * * @param mixed $values Criteria or Cotisation object or primary key or array of primary keys * which is used to create the DELETE statement * @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 doDelete($values, PropelPDO $con = null) { if (CotisationPeer::isSoftDeleteEnabled()) { return CotisationPeer::doSoftDelete($values, $con); } else { return CotisationPeer::doForceDelete($values, $con); } }
/** * Bypass the soft_delete behavior and force a hard delete of the selected rows * * @param PropelPDO $con an optional connection object * * @return int Number of deleted rows */ public function forceDelete(PropelPDO $con = null) { return CotisationPeer::doForceDelete($this, $con); }