New to Cake. When using scaffolding on a model, everything works perfectly. Except for the "related" display on a view page. It seems like for related models scaffolding only does a simple query instead of using joins to display the information.
I am working on an app that organizes information about television stations and media markets. A media market is a geographic area that has many stations. When I view a market, I see a related list of all of the stations, however they look like this: Market: ID 550 Name Atlanta Related Stations: ID // Market_ID // Station // Affiliation_ID 1 // 550 // WXIA // 3 2 // 550 // WSB // 1 3 // 550 // WGCL // 2 etc When you actually view WXIA (one of the stations above) the view correctly translates that Market_ID: ID // 1 Market // Atlanta Station // WXIA Affiliation // NBC To my knowledge all of the models are set up correctly since they work on their own, they just don't automagically translate that foreign key into a displayField in the related view of scaffolding. I'm more than willing to bake and write my own code, I just need some guidance. When I'm in the view for the market, and I have a market ID or an Affiliation ID, how do I requery that information to display Atlanta instead of 550, or NBC instead of "3". If anyone needs anything additional I'd be glad to provide it. Thanks. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
