title: cakephp 1.3: find conditions
body: <pre><code>   Array
    (
       [0] =&gt; Array
         (
          [DebateComment] =&gt; Array
              (
                  [id] =&gt; 126
                  [user_id] =&gt; 17
                  [debate_id] =&gt; 32
                  [debate_comment_title] =&gt; hiiiiiii
                  [debate_comments] =&gt; gfdfg dfg .
  
                  [debate_type] =&gt; against
                  [total_postive_counts] =&gt; 1
                  [total_negative_counts] =&gt; 0
                  [accept_challenges] =&gt; Enable
                  [status] =&gt; Active
                  [modified] =&gt; 2011-08-19 11:12:59
                  [created] =&gt; 2011-08-18 17:50:53
              )
  
          [User] =&gt; Array
              (
                  [id] =&gt; 17
                  [group_id] =&gt; 3
                  [fb_user_id] =&gt; 0
                  [username] =&gt; xyz
                  [email] =&gt; xyz@xyz.com
                  [password] =&gt; 077dadf3cc9c5fcb95dfacc3d8ff5049123b2d89
                  [status] =&gt; 1
                  [verify_code] =&gt; 
                  [signup_ip] =&gt; 
                  [is_verified] =&gt; 1
                  [user_comment_warn_status] =&gt; 0
                  [user_ip_address] =&gt; 
                  [referred_by_user_id] =&gt; 0
                  [twitter_user_id] =&gt; 0
                  [twitter_access_key] =&gt; 
                  [twitter_access_token] =&gt; 
                  [modified] =&gt; 2011-05-05 10:43:15
                  [Userdetail] =&gt; Array
                      (
                          [id] =&gt; 14
                          [user_id] =&gt; 17
                          [firstname] =&gt; xyz
                          [lastname] =&gt; 
                          [about_me] =&gt; 
                          [tagline] =&gt; 
  
                          [visible_status] =&gt; Online
  
                          [show_welcome_message] =&gt; Yes
                          [created] =&gt; 2011-05-05 10:43:15
                          [modified] =&gt; 2011-05-05 10:43:15
  
  
                      )
  
                  )
      )
  </code></pre>
  
  <p>Above array describe relation with eachother.</p>
  
  <p>I write this query but dosent get output.</p>
  
  <pre><code>$arr = $this-&gt;DebateComment-&gt;find('all',array(
             'conditions'=&gt;array('User.Userdetail.visible_status'=&gt;'Online'), 'recursive'=&gt;3));
  </code></pre>
  
  <p>My Question :</p>
  
  <p>I want to find all DebateComment .but conditions is that visibale_status => online in Userdetails.</p>