Page 1 of 1
master detail links
Posted: Wed Sep 18, 2013 8:52 am
by sticcino
I have a table
clients -> master
Properties - >detail
it should be 1 client -> many properties
every time i generate the code, phpmaker decides to flip the links and make it:
many clients -> 1 Property
also i am removing the cascade options, but phpmaker is enabling them regardless
on the generate list form, there is then no links to the sub-form/table
Re: v10 phpmaker keeps flipping master detail links
Posted: Wed Sep 18, 2013 9:06 am
by mobhar
Make sure you first select the key from the "clients" table and then drag and drop it into the master key of the "Properties" table, and not vice-versa. This will make the relationship one-to-many from "client" table to "Properties" table. In v10, you should see from the "Table" setup, in the "Master Table" should be "clients", and in the "Detail Table" should be "Properties".