how to query with deep relation table

Open discussion on QxOrm library

how to query with deep relation table

Postby qsimul » Mon Aug 22, 2011 8:13 am

Hi,
if I have table A,B and C where the relation are
A -- many to one ---->B -- one to many ----->C.
and if I want to query like this statement = "select * from A inner join B inner join C".
it is possible to do that in QxOrm ?

I am try to check using fetch_all_with_relation but it's only can fetch relation A and B, not C.
Please advise.

Thanks
qsimul
 
Posts: 1
Joined: Mon Aug 22, 2011 4:14 am

Re: how to query with deep relation table

Postby QxOrm admin » Mon Aug 22, 2011 9:32 am

Hi,

No you can't, this is not supported yet by QxOrm library (1.1.7).

But, in your database, you can create a view.
Then just map a C++ class to this view...
QxOrm admin
 


Return to QxOrm - Open discussion

Who is online

Users browsing this forum: No registered users and 13 guests