You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to ask a question. I am currently using relationOneToOne. I have specified a column in the database table to store the id of another table, forming a one-to-one relationship. However, when I query through Orm, I find that it is querying based on the condition that the ids of the two tables are the same, rather than the column I specified. Did I use the method incorrectly?
The text was updated successfully, but these errors were encountered:
Hello,
I don't recommend using 1-1 relationships, because this is exactly what you
said : the 2 tables must share the same ID.
QxEntityEditor for example never creates an automatically 1-1 relationship.
You should try 1-n / n-1 relationships.
Regards,
Lionel Marty - QxOrm library
Le jeu. 28 mars 2024 à 08:49, 不爱别伤害 ***@***.***> a écrit :
I would like to ask a question. I am currently using relationOneToOne. I
have specified a column in the database table to store the id of another
table, forming a one-to-one relationship. However, when I query through
Orm, I find that it is querying based on the condition that the ids of the
two tables are the same, rather than the column I specified. Did I use the
method incorrectly?
—
Reply to this email directly, view it on GitHub
<#124>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AJDYIMU4OVAAORKPU5Z6CG3Y2PDRFAVCNFSM6AAAAABFMJHK7SVHI2DSMVQWIX3LMV43ASLTON2WKOZSGIYTENJXGQZTOOI>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
I would like to ask a question. I am currently using relationOneToOne. I have specified a column in the database table to store the id of another table, forming a one-to-one relationship. However, when I query through Orm, I find that it is querying based on the condition that the ids of the two tables are the same, rather than the column I specified. Did I use the method incorrectly?
The text was updated successfully, but these errors were encountered: