Hi Tuner,
This is a hasAndBelongsToMany relationship. You would need to name your
join table groups_users for things to be handled automatically (the
names need to be in alphabetical order), and the "id" field in the join
table wouldn't be used.
If the conventions are followed you can define thi
Tener wrote:
> I have 3 tables:
>
> users:
> id | username | password
>
> groups:
> id | groupname
>
> user_groups:
> id | user_id | group_id
>
> How to set members declarations (is that the proper-english-name for
> objects/classes variables?) of 3 models to make everything works
> perfectly?
Hello! I don't have much experience in CakePHP. I have read tutorials,
wiki and I have studied a lot of code of this framework but I have a
problem with one basic thing.
I have 3 tables:
users:
id | username | password
groups:
id | groupname
user_groups:
id | user_id | group_id
How to set mem