Teknoid has written a load of useful blog posts about HABTM and
created a HABTMable behaviour which would help you.
http://nuts-and-bolts-of-cakephp.com/?s=habtm

Go have a read, I have read them all as gives you a much better
understanding of how you can control HABTM relationships and join
tables.  Personally i prefer to model-ise my join tables so I can run
finds and paginates on the join model and the other two tables are
automagically joined.

Posts hasMany PostsTag
PostsTag belongsTo Posts, Tag
Tag hasMany PostsTag

HTH, Paul.

On Aug 29, 8:25 pm, Prabha vathi <[email protected]> wrote:
> Hi
>
> Please someone help me on this. I want to do it using cakephp method. I
> don't want to write custom query, until if it is not possible using cakephp

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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