On Jul 16, 6:16 am, fedekun <fedekil...@gmail.com> wrote: > Hi! I have just started with CakePHP and it seems very good so far! > But i have a little question... i have a Post model, each post > "hasMany" comments, and comments "belongsTo" a Post.
> If i want to order posts ASC and > comments DESC...How do i do it? I suggest you could setup your order clause and your conditions in the model association: http://book.cakephp.org/view/78/Associations-Linking-Models-Together#Relationship-Types-79 -- Domenico Testa http://del.icio.us/domtes --~--~---------~--~----~------------~-------~--~----~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---