I have a Athletes table as such
id
name
athlete_type
Then I have tables that contain fields specific to different
athlete_types
baseball_stats table
athlete_id
homeruns
strikeouts
rbis
basketball_stats
athlete_id
points
freethrowpercentage
I was looking for a structure coming from a find() similar to
Array
(
[Athlete] => Array
(
[id] => 3459
[lastname] => Duncan
[athlete_type] => 5
)
[BasketballStats] => Array
(
[athlete] => 3459
[points] => 1287
[freethrowpercentage] => 87
)
)
I thought I could use bindable for this by telling it to bind with
each model based on what the athlete_type value is. But i don't think
thats possible now after testing for awhile. Do I need to find a way
to perform conditional joins? Or maybe on a more basic level my db
schema is just flawed.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" 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
-~----------~----~----~----~------~----~------~--~---