func (r *GormWorkItemRepository) LoadByID(ctx context.Context, ID string) (*WorkItem, error) {
	res, err := r.LoadFromDB(ctx, ID)
	if err != nil {
		return nil, errs.WithStack(err)
	}
	wiType, err := r.witr.LoadTypeFromDB(ctx, res.Type)
	if err != nil {
		return nil, errors.NewInternalError(err.Error())
	}
	return ConvertWorkItemStorageToModel(wiType, res)
}
// Load returns the work item for the given id
// returns NotFoundError, ConversionError or InternalError
Load returns the work item for the given id
returns NotFoundError, ConversionError or InternalError
// Load returns the work item for the given id // returns NotFoundError ConversionError or InternalError
func (r *GormWorkItemRepository) LoadByID(ctx context.Context, ID string) (*WorkItem, error) {
	res, err := r.LoadFromDB(ctx, ID)
	if err != nil {
		return nil, errs.WithStack(err)
	}
	wiType, err := r.witr.LoadTypeFromDB(ctx, res.Type)
	if err != nil {
		return nil, errors.NewInternalError(err.Error())
	}
	return ConvertWorkItemStorageToModel(wiType, res)
}
func ( r * GormWorkItemRepository ) LoadByID ( ctx context . Context , ID string ) ( * WorkItem , error ) { res , err := r . LoadFromDB ( ctx , ID ) if err != nil { return nil , errs . WithStack ( err ) } wiType , err := r . witr . LoadTypeFromDB ( ctx , res . Type ) if err != nil { return nil , errors . NewInternalError ( err . Error ( ) ) } return ConvertWorkItemStorageToModel ( wiType , res ) }
Load returns the work item for the given id
returns NotFoundError, ConversionError or InternalError
Load returns the work item for the given id returns NotFoundError ConversionError or InternalError