Sorry, my mistake. A lot of tinkering and testing i copied the wrong
things
Game->find() says it can't find GamePlayer.user_id column which makes
sense now because it doesn't do a join.
however still having the problem where GamePlayer->find() says it
can't find Game.status column, so still no join.
my setup is as follows (i just verified to make sure i didn't slip up
on simple naming):
class GamePlayer extends AppModel {
var $name = 'GamePlayer';
var $belongsTo = array (
'User',
'Game'
);
}
database_name (columns):
games (id int(10) unsigned, status int(1),...)
game_players (id int(10) unsigned, game_id int(11),...)
another point, I'm doing this find() from within the games_controller.
However i do have var $uses = array('Game','User','GamePlayer',
'Rule', 'Weapon'); in the controller...
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---