Adi,

On Sat, 30 Jun 2007, Adi Mallikarjuna Reddy V wrote:

> Let us say I have three tables Students, Community and Stu_Comm. They
> capture that each community has some students associated with it. I define
> three models for the three tables.  Now the question, since I captured
> hasMany relationship through Stu_Comm table, do I need to again define
> associations in the corresponding models or should I not create Stu_Comm and
> only write associations in the two models.

As long as you follow the (naming) conventions of naming the tables, you 
can just create the associations in the two models. The Stu_Comm is not a 
model per definition anyway. Anyhow, this is how I always do it.

HTH
Paul

--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to