I use this query , and it created a lot duplicate query . This problem 
seems many people met. 
$this->Action->find('all', array(
'limit' => 60,
'order' => array('Action.created DESC'),
'contain' => array(
'Thread' => array('Game' => array('Image' => array('limit' => 1))),
'Post' => array('Thread' => array('Game' => array('Image' => array('limit' 
=> 1)))),
'Game' => array('Image' => array('limit' => 1)),
'User' => array('Avatar')
)
)
);

I searched google a lot but i still can't find out  .  All relationship is 
belongsTo or hasMany. 
how can i solve this problem ?

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