title: cakephp find all condition AND OR
body: <p>Below is my condition:</p>
  
  <pre><code>'OR' =&gt;
      array(
          'AND' =&gt; array(
              array('EventCompetitor.is_black' =&gt; 1),
              array('EventCompetitor.is_adult' =&gt; 1)
          ),
          'AND' =&gt; array(
              array('EventCompetitor.is_black' =&gt; 0),
              array('EventCompetitor.is_adult' =&gt; 0)
          ),
      ),
  </code></pre>
  
  <p>When I debug my query, it comes something like this, which is wrong:</p>
  
  <pre><code>AND ((`EventCompetitor`.`is_black` = 0) AND (`EventCompetitor`.`is_adult` = 0)) AND
  </code></pre>
  
  <p>Now, that's not what I want, I want it something like this:</p>
  
  <pre><code>((`EventCompetitor`.`is_black` = 1) AND (`EventCompetitor`.`is_adult` = 1)) OR ((`EventCompetitor`.`is_black` = 0) AND (`EventCompetitor`.`is_adult` = 0))
  </code></pre>
  
  <p>Any idea, how can I achieve it?</p>
  
  <p>Thanks !</p>