Please post your HABTM from your TeamUser model. Seems like you have a
problem there.

Should look something like (guessing):

   // Link to jobs
    var $hasAndBelongsToMany = array(
        'TeamUser' =>
        array(
                'className'             => 'TeamUser',
                'joinTable'             => 'teams_users',
                'foreignKey'            => 'user_id',
                'associationForeignKey' => 'team_id',
                'conditions'            => '',
                'order'                 => '',
                'limit'                 => '',
                'unique'                => true,
                'finderQuery'           => '',
                'deleteQuery'           => '',
                'insertQuery'           => ''
        ));

On Jan 4, 4:47 pm, gearvOsh <[email protected]> wrote:
> Ok I have a users and teams system. Users are part of a team. Here is
> the naming conventions:
>
> Model: Team, User
> DB: teams, users
> HABTM: teams_users (TeamUser model)
>
> But when I set my HABTM relationships I get errors because it says
> that the model TeamsUser does not exist. Shouldnt it be TeamUser?
> Thats what all the documentation says.
>
> I fail to see how this setup is better then having a table, model,
> controller, etc all called Teams or Users.
--~--~---------~--~----~------------~-------~--~----~
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