Master Detail Table with Different Foreign Key

When master detail grid foreign keys don’t have the same name, you should use SQL alias. See Remark on 

http://phpgrid.com/documentation/set_masterdetail/

It's also recommended that the foreign key is displayed in detail grid during editing. Make sure to read this KB to edit master detail grid that uses SQL alias http://phpgrid.uservoice.com/knowledgebase/articles/411029

Feedback and Knowledge Base