コード例 #1
0
	/**
	 * Delete or soft delete records, depending on AbsenceEleveSaisiePeer::$softDelete
	 *
	 * @param			 mixed $values Criteria or AbsenceEleveSaisie 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 (AbsenceEleveSaisiePeer::isSoftDeleteEnabled()) {
			return AbsenceEleveSaisiePeer::doSoftDelete($values, $con);
		} else {
			return AbsenceEleveSaisiePeer::doForceDelete($values, $con);
		}
	}