thanks lisa.
Tried that...but it didn't work. Here's the query that
created....league_id doesn't exist in the teams_users table. only in
the teams table.
SELECT `TeamsUser`.`id`, `TeamsUser`.`user_id`, `TeamsUser`.`team_id`
FROM `teams_users` AS `TeamsUser` WHERE `Team`.`league_id` = 1
But that link you sent had something that seems to work for me.
$this->User->TeamsUser->bindModel(array('belongsTo' => array('Team',
'User')));
$this->set('users',$this->User->TeamsUser-
>findAll(array('Team.league_id' => 1)));
thanks!!
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---