HamedMasafi / Nut

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

NUT_INFO in NUT_DECLARE_TABLE and NUT_DECLARE_FIELD ...not work #128

Open Wangpeiyu opened 2 years ago

Wangpeiyu commented 2 years ago

Describe the bug Noting nothing create in database,just __change_logs table created. Debug with src code, find that NUT_INFO in NUT_DECLARE_TABLE not work, create table Q_CLASSINFO for the databse failed. Then , use Q_CLASSINFO("nut_info::" "table" "TB_Point" "points", "table" "\n" "TB_Point" "\n" "points") insted NUT_INFO , find that there has no FIELD created for table, so NUT_INFO in NUT_DECLARE_FIELD not work. So, NUT_INFO not work in other useage.
How to fix it?

Development platform:

Wangpeiyu commented 2 years ago

test with Qt6 present the same problem.

HamedMasafi commented 2 years ago

Hi

Can I see your code?

Wangpeiyu commented 2 years ago

Hi, Thanks for your reply. This is the code with qt6:https://drive.google.com/file/d/19yZrnpvcxNK-HmSKJRJKJN2ipa_AR85C/view?usp=sharing