/** * 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); } }