Menu

MySQL 1:1 Relationships showing up as 1:M

+1 vote

I am trying to get a 1:1 relationship recognized by DBFront.

I have a main and secondary table, where I have a UNIQUE constraint on an index that points to a column on the main table.

DBFront is currently just recognizing this as a 1:M relationship, and shows a new tab with one record in a grid that needs to be selected in order to edit. This works, but is clunky.

How can I get this to show up as a 1:1 relationship?

Thanks,
Dave

in Features (Todo) by (290 points)
recategorized by
It wasn't set up that way, so I changed it, and now it's recognized. Thank you.

It would be great if the 1:1 details could be represented on the same form (vs. a separate tab), though, since to the user, the data is all of the same type.
FYI: I turned this into a feature request to also support 1:1 relationships based on a Unique Key.

1 Answer

0 votes
 
Best answer

Currently dbFront recognizes 1:1 relationships when the PK (Primary Key) of the child table is joined to the PK on the parent table.

by (65.1k points)
edited by
Welcome to the dbFront Q&A site, where you can ask questions and receive answers from other members of the community.
 | Minimalist Answer Theme by Digitizor Media
 |
Powered by Question2Answer
...