Currently, the only method that I can think of is using setting relationship between tables inside the model file and set the changes to view file to display the other 5 tables "selected" columns.
I would like to know if there is work-around or methods to pass a SQL query into the yii:app()->db->createCommand() and then put into a variable M, then put M into the dataProvider of the zii.widgets.grid.CGridView?
may I know if it is possible for you to help me draft out the code for such scenario? (I have done a research online and notice that many cases / scenario tackle at most 2 tables. I was wondering how can I tackle 5 tables in this scenario based on the sixth table. Thanks in advanced for the code draft.)
I know this is an old topic but I came across it looking for another answer.
Surely the more efficient way to handle this is within the database. ie: define a view and then create a model on that view (or a function in your current model).