Thanks for the input.
But,the relationship is this way
1) users HASBTM profiles.
1st scenario ) user can have multiple profiles. A profile can belong to
multiple user.
2nd scenrio ) even if user is not having a particular profile, he can still
follow that profile.
thats the reason there are 2 HASBTM tables. 1) users_profiles for 1st
scenario 2) followers for 2nd scenario.
womble-2 wrote:
>
>
> I'm only a cake noob, and I obviously don't know for sure about how
> your thinking of Users and Profiles.
>
> In my mind:
> User hasOne Profile
> Follower hasAndBelongsToMany Profiles (or prehaps instead of
> Profiles its Users)
>
> But User and Follower are essentially the same.... so in my Database
> mind......
>
> User
> user_profile : user_id, profile_id, follower (set either true/false)
> [if you can follow your own Profile then you'd also add: owner (true/
> false) ]
> Profile
> >
>
>
--
View this message in context:
http://www.nabble.com/Many-to-Many-relationship-issue-tp24466294p24493429.html
Sent from the CakePHP mailing list archive at Nabble.com.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---