Each User can have many Albums. Each Album can also have many Users
('owned' by many Users, in this case).

It is always bi-directional.

To be clearer, each User in your app is *associated* to more than one
Album. Similarly, each Album is *associated* (through purchase for
example) to more than one User.


On 10/27/06, cherrio <[EMAIL PROTECTED]> wrote:
>
> Thanks Kiper for the reply,
>
> My post came out of reading the Models chapter, as it its example it
> doesn't describe the reverse relation ship between Tags and Comments.
> In the other example it does describe (ie. User hasMany Comments,
> Coment belongsTo User).
>
> I just want to be sure before continuing, any one else have any
> thoughts?
>
> Cheers,
> Rob
>
>
> On Oct 27, 10:32 am, "kiper" <[EMAIL PROTECTED]> wrote:
> > IF I understand this right then you have to have HABTM on both Models
> > as well as a third JOIN table in the database to make it work.
> > Check this out for more info:
> >
> > http://manual.cakephp.org/chapter/models
> >
> > Read the paragraphs under the "Defining and Querying with
> > hasAndBelongsToMany" heading...
> >
> > Hope it will make it clearer to you!
>
>
> >
>


-- 
Best,
Irfan Baig

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to