Actions
Feature #4922
closedDbo: allow foreign keys to be specified as-is
Start date:
05/19/2016
Due date:
% Done:
0%
Estimated time:
Description
Currently, one cannot map just any existing schema to Wt::Dbo because Wt::Dbo enforces how foreign keys are to be named as 'name_pkid' where 'name' is a foreign key name, and 'pkid' is the primary key id(s). This works in general because a key could also be composite.
In some situations you do want to map a simple foreign key literally. We should support this by using a syntax like :
Wt::Dbo::belongsTo(a, Wt::Dbo::ManyToOne, ">other");
The '>' then indicates that 'other' really is the name of the field that is the foreign key, instead of 'other_id'.
Updated by Roel Standaert over 8 years ago
- Status changed from InProgress to Implemented @Emweb
Updated by Koen Deforche over 8 years ago
- Status changed from Implemented @Emweb to Resolved
Updated by Koen Deforche over 8 years ago
- Status changed from Resolved to Closed
Actions