Project

General

Profile

Actions

Feature #903

closed

Dbo::Session::load: add force_reread argument

Added by Boris Nagaev over 13 years ago. Updated about 13 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
07/15/2011
Due date:
% Done:

0%

Estimated time:

Description

Currently to load fresh version of object:

dbo::ptr<User> u = session.load<User>(id);
u.reread();
// use u

It results in two loads from database.

Could you provide argument to session.load() to force loading from database?

Actions #1

Updated by Koen Deforche over 13 years ago

  • Status changed from New to InProgress
  • Assignee set to Koen Deforche
  • Target version set to 3.1.11

Hey,

I see and indeed the only solution is to extend the load() API to indicate that you want a fresh copy...

Regards,

koen

Actions #2

Updated by Koen Deforche over 13 years ago

  • Status changed from InProgress to Resolved
Actions #3

Updated by Koen Deforche about 13 years ago

  • Status changed from Resolved to Closed

Resolved in Wt 3.1.11

Actions

Also available in: Atom PDF