HamedMasafi / Nut

Advanced, Powerful and easy to use ORM for Qt
GNU Lesser General Public License v3.0
294 stars 75 forks source link

Lots of errors in test files #27

Closed LinArcX closed 6 years ago

LinArcX commented 6 years ago

Hi. i want to see the features of your library. so run them in qt creator. for example open the tst_command sample. when it run the tests, i'v got some errors like this:

/mnt/E/Downloads/Nut-master/test/commands/maintest.cpp:40: error: ‘class WeblogDatabase’ has no member named ‘posts’; did you mean ‘post’?
     Query<Post>* q = db.posts()->query()->setWhere(Post::titleField() == "test" && Post::idField() < 4 + 5);
                         ^~~~~
                         post

or:

/mnt/E/Downloads/Nut-master/test/commands/maintest.cpp:49: error: no member named 'posts' in 'WeblogDatabase'
HamedMasafi commented 6 years ago

Excuse me, my fault. Some updated doesn't applied to tests. Give me few days I'll be fix that.

Thanks for report

HamedMasafi commented 6 years ago

New commit pushed to dev branch

LinArcX commented 6 years ago

Thank you for commits, but there is an error still persist in query.h file(line 64):

/mnt/D/Document/WorkSpace/Qt/Forked/Nut/src/query.h:64: error: incomplete type ‘User’ used in nested name specifier
         join(TABLE::staticMetaObject.className());
              ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~