/** * Delete or soft delete records, depending on AbsenceEleveTraitementPeer::$softDelete * * @param mixed $values Criteria or AbsenceEleveTraitement 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 (AbsenceEleveTraitementPeer::isSoftDeleteEnabled()) { return AbsenceEleveTraitementPeer::doSoftDelete($values, $con); } else { return AbsenceEleveTraitementPeer::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 AbsenceEleveTraitementPeer::doForceDelete($this, $con); }