Saturday, November 17, 2012

Wishlist: more HABTM sorting/pagination options

So as far as I can tell, if you want to paginate a model based on the conditions in another model associated via HABTM, you need to do a custom join. It'd be nice to have some convenience methods to make that more "Cakey."

It's a fairly common need; find posts by author's status, find athletes by team's country, etc.

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
 
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
 
 

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate