This is actually the expected behavior. Consider the join table (when modelised, like you are doing) to be a simple name. The inflector will look at the plural string (as is the convention) and remove the 's' at the end of the last word detected.
Table: teams_untils Model: TeamsUnit Cheers, Graham On Jan 5, 11:47 am, 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 -~----------~----~----~----~------~----~------~--~---
