title: Find conditions with hasMany model
body: <p>I have 4 model:</p>
  
  <p>Item------hasMany---->Detail</p>
  
  <p>Item------hasMany---->Favourite</p>
  
  <p>Item------hasMany---->Category</p>
  
  <p>How can I find all Item that has Favourite.member_id = '8' and Category.item_category_id = '1'</p>
  
  <p>Here is my Item model relation:</p>
  
  <pre><code>public $hasMany = array(                
      'Detail' =&gt; array(
          'className' =&gt; 'Detail',
          'foreignKey' =&gt; 'item_id',
          'dependent' =&gt; true,
          'conditions' =&gt; '',
          'order' =&gt; 'created DESC',          
      ),      
      'Category' =&gt; array(
          'className' =&gt; 'Category',
          'foreignKey' =&gt; 'item_id',
          'dependent' =&gt; true,
          'conditions' =&gt; '',
          'order' =&gt; 'created DESC',          
      ),
      'Favorite' =&gt; array(
          'className' =&gt; 'Favorite',
          'foreignKey' =&gt; 'item_id',
          'dependent' =&gt; true,
          'conditions' =&gt; '',
          'order' =&gt; 'created DESC',          
      )
  
  );
  </code></pre>
  
  <p>I used this query() and it's ok:</p>
  
  <pre><code>$this-&gt;set('test',$this-&gt;Item-&gt;query("SELECT items.*
                                          FROM items, categories, favourites
                                          WHERE items.id = items_item_categories.item_id
                                          AND items.id = favorites.item_id
                                          AND categories.item_category_id = 1 AND favourites.member_id = 8"));
  </code></pre>
  
  <p>But I don't like using query(), and I change it into find(), and it seems not good:</p>
  
  <pre><code>$this-&gt;set('test',$this-&gt;Item-&gt;find('all', array(
                                                  'contain'=&gt;array(
                                                      'ItemDetail',
                                                      'Category'=&gt;array('conditions'=&gt;array('Category.item_category_id'=&gt;1)),
                                                      'Favorite'=&gt;array('conditions'=&gt;array('Favorite.member_id'=&gt;8)));
  </code></pre>