Monday, May 30, 2011

HABTM Pagination

I have the following relationships (habtm both ways):

User HABTM Groups
User HABTM Events
User HABTM Locations

So for example - I want to get users that belong to groupA, groupB and
locationX and paginate the results - whats the best way of
implementing it?

I'm trying to avoid using bindModel(), doing manual joins and making
models for the join table; I'm hoping someone can show me a simpler
way :)

--
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
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

No comments: