Hi all,

I am a toatl noob with cakephp, i am trying to build a blog and i feel
that i am progresing quite well. I just have one question...

I currently have 4 models (post, user, comment, catgeory), when
reading a post from the database with recursive=0 i only get the
post,user and category data, using recursive=1 i get the comment info
too but i also want to get the user info for each comment aswell.
switching to recursive=2 does this but doubles the query count and
duplicating some of the queries.

Can you offer any advice on a better, more efficient way to do this.

Thanks for your help

Broxi

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to