Does anybody know what could be wrong.. if I would bake my model /
controllers / views for users
it will just put a input text box for usergroup_id and in the model it
just says:
<?php
class Users extends AppModel {
var $name = 'Users';
}
?>
Here is the table setup..
-----------------------------------------------------------------------------------
CREATE TABLE `usergroups` (
`id` int(11) NOT NULL auto_increment,
`name` varchar(120) NOT NULL,
`created` datetime NOT NULL,
`modified` datetime NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
CREATE TABLE `users` (
`id` int(11) NOT NULL auto_increment,
`username` varchar(120) NOT NULL,
`password` varchar(120) NOT NULL,
`usergroup_id` int(11) NOT NULL,
`created` datetime NOT NULL,
`modified` datetime NOT NULL,
PRIMARY KEY (`id`),
KEY `fk_usergroup_id` (`usergroup_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
---------------------------------------------------------------------------
Does anybody know why it would not recognize the other table?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---