Many to many relationships |
9/9/2020 9:09:00 AM |
PHPRunner General questions | |
V
Vladimir_V author
Hello. |
|
S
|
skbrasil 9/9/2020 |
Hello. The question is simple for advanced users, but difficult for me. I am trying to create many to many relationships as in tutorial https://xlinesoft.com/blog/2011/02/28/how-to-setup-many-to-many-relationships/ https://vimeo.com/20306453 But this tutorial very old In MySQL workbench (InnoDB) adding many to many relationships is clear for me, but not in PHPRunner. 2 day I try implement many to many relationships as in tutorial, nothing good happened because the link table no have ID Before: Office_Employee OfficeID PK EmployeeID PK After: Office_Employee ID PK AI OfficeID EmployeeID This working same as in tutorial (no need throw an error in case of a duplicate, now is one checkbox "Prevent duplicate values") I use add new record an if I add new Employee i see error: "Unknown column 'name' in 'field list'". I already give up, I can not configure adding a record to the table Employee from detail tab. May be somebody have tutorial for this? Or new way working with many-to-many relationships.
|
![]() |
Admin 9/11/2020 |
That article may be old but the idea of how to handle many to many relationships hasn't changed since databases were invented. The idea is to have a crossref table. |