if you did check the manual, in 'models' chapter, you find about model variables: http://manual.cakephp.org/chapter/models
$primaryKey If this model relates to a database table, and the table's primary key is not named 'id', use this variable to tell Cake the name of the primary key. Spark On Nov 21, 2007 3:55 PM, Action <[EMAIL PROTECTED]> wrote: > > I need to set up a HABTM association between two tables: users and > teams. > > The problem I'm having is that the primary key in the users table is > called "user_id", not "id". (I am not allowed to change this). > > How do I set up my join table and association so it associates Team.id > with User.user_id, not User.id? > > Thanks. > > > -- [livesets] http://djspark.com.br/ [web] http://sydi.net [filmes] http://melhoresfilmes.com.br --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---