Mmmm when i changed the db engine to MyIsam.. and tried again it still
does not work :( even when i enter data in the table.. it does not put
the relation in the model..

On Jul 16, 10:39 am, RichardAtHome <[EMAIL PROTECTED]> wrote:
> Try putting some data in your groups table.Cakewill change the
> textbox to a drop down select list.
>
> On Jul 15, 10:35 pm, "Renan Gonçalves" <[EMAIL PROTECTED]> wrote:
>
> > Recognize relationships based on InnoDB relationships is planned to CakePHP
> > 2.0.https://trac.cakephp.org/wiki/Proposals/2.0ToDoList
>
> > []'s
>
> > On Tue, Jul 15, 2008 at 4:07 PM, Mech7 <[EMAIL PROTECTED]> wrote:
>
> > > Does anybody know what could be wrong.. if I wouldbakemy 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?
>
> > --
> > Renan Gonçalves - Software Engineer
> > Cell Phone: +55 11 8633 6018
> > MSN: [EMAIL PROTECTED]
> > São Paulo - SP/Brazil
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to