On 10-07-24 1:16 PM, E L wrote:
> class Part;
> namespace dbo = Wt::Dbo;
> class Part : public dbo::Dbo {
>   public:
>     dbo::ptr<Part>        parent;
>     std::string         refdes;
>     std::string         value;
>
>     template<class Action>
>     void persist(Action&  a) {
>         dbo::belongsTo(a, parent,       "part");
>         dbo::field(a, refdes,           "refdes");
>         dbo::filed(a, value,            "value");
>     }
> };
> DBO_EXTERN_TEMPLATES(Part);

I believe you want to use a hasMany relation rather than belongsTo 
unless I misunderstand your purpose.


------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to