Actions
Feature #903
closedDbo::Session::load: add force_reread argument
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?
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
Updated by Koen Deforche over 13 years ago
- Status changed from InProgress to Resolved
Updated by Koen Deforche about 13 years ago
- Status changed from Resolved to Closed
Resolved in Wt 3.1.11
Actions