Invalid sql relation error

Forum for posting problems using QxOrm library

Invalid sql relation error

Postby magicu » Wed Feb 15, 2012 5:25 am

If fetch_by_query_with_all_relation must be used for a table that have some relationships?

I use it to query a table without relationship, then I get an error:

[QxOrm] 'qx::dao' internal error <fetch all with relation>
[QxOrm] invalid sql relation


Must I use fetch_by_query instead?
magicu
 
Posts: 54
Joined: Fri Jan 20, 2012 9:51 am

Re: Invalid sql relation error

Postby QxOrm admin » Wed Feb 15, 2012 8:23 am

Hi,

I use it to query a table without relationship ... Must I use fetch_by_query instead?

Yes, use qx::dao::fetch_by_query() if you have not registered at least 1 relation into your qx::register_class<T> function.
QxOrm admin
 


Return to QxOrm - Help

Who is online

Users browsing this forum: No registered users and 3 guests

cron