Sunday, January 4, 2009

HABTM naming convention messed up?

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 cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: