So I am creating an application that lists stats from my hockey
leagues. The HockeySeason model has many HockeyWeeks and HockeyTeams.
The HockeyWeek has many HockeyGames and HockeyGame has many GameGoals,
GamePenalties, GameGoalies. When I view the HockeySeason, I want each
HockeyWeek to also show the detail of each game. However. When I view
the Season, I only get a listing of weeks, without said detail. In the
debug area, it describes all the sub-tables, but it doesn't select any
of them. I have standard views set up for each controller, so if I
view the specific week, the detail is there, but I want to see all the
detail at the HockeySeason view level. Is there something in the
HockeySeasonController :: view function I need to specify to get the
sub models?
I guess I am expecting something like this as the output object
Model: Array (
[HockeySeason] => Array ( [id] => 4 [name] => xxxx [season_level] =>
b [season_start] => 2008-08-07 [season_end] => 2008-08-06 )
[HockeyWeek] => Array (
[0] => Array ( [id] => 4 [hockey_season_id] => 4 [week_title] =>
Week 1 [week_note] => testing a [week_date] => 2008-08-07 [week_val]
=> 5
[HockeyGame] => Array (
[0] => Array ( [id] => 1 [desc] => Test [GameGoals] => Array
(
[0] => Array ( GOAL DETAILS )
[1] => Array ( GOAL DETAILS )
[2] => Array ( GOAL DETAILS )
[3] => Array ( GOAL DETAILS )
)
)
[1] => Array ( [id] => 2 [desc] => Test2 [GameGoals] => Array
(
[0] => Array ( GOAL DETAILS )
[1] => Array ( GOAL DETAILS )
[2] => Array ( GOAL DETAILS )
[3] => Array ( GOAL DETAILS )
)
)
[1] => Array ( [id] => 5 [hockey_season_id] => 4 [week_title] =>
Week 3 [week_note] => [week_date] => 2008-08-21 [week_val] => 33 )
)
[HockeyTeam] => Array ( [0] => Array ( [id] => 1 [hockey_season_id]
=> 4 [team_name] => Bullets [team_logo] => [team_capitan] => 0
[team_players] => ) ) )
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---