Page 1 of 1

Invalid sql relation error

PostPosted: Wed Feb 15, 2012 5:25 am
by magicu
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?

Re: Invalid sql relation error

PostPosted: Wed Feb 15, 2012 8:23 am
by QxOrm admin
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.