title: cakePHP containable model should not be empty
body: <p>I have problem in filtering records, I don't want any records have empty models.</p>
  
  <pre><code>       $this-&gt;paginate = array('fields' =&gt;
              array('DISTINCT Joborder.id',
                  'Joborder.job_type',
                  'Joborder.payment_status',
                  'Joborder.estimate_id',
                  'Joborder.quantity',
                  'Joborder.date_created'
              ),
              'contain' =&gt; array(
                  'Workorder.id',
                  'Workorder.joborder_id',
                  'Joborderpart.id',
                  'Joborderpart.binding',
                  'Orderstatus.id',
                  'Estimate' =&gt; array(
                      'Client' =&gt; array(
                          'fields' =&gt; array(
                              'Client.company_name'
                          )
                      )
                  ),
                  'Orderstatus' =&gt; array(
                      'fields' =&gt; array('Orderstatus.id'),
                      'order' =&gt; array(
                          'Orderstatus.id DESC'
                      ),
                      'conditions' =&gt; array(
                          'Orderstatus.Orderstatustype_id LIKE' =&gt; 5
                      ),
                      'Orderstatustype' =&gt; array(
                          'fields' =&gt; array(
                              'Orderstatustype.id',
                              'Orderstatustype.orderstatus'
                          )
                      ),
                      'limit' =&gt; 1
                  )
              )
          );
  </code></pre>
  
  <p>I have checked a condition in Orderstatus table for selecting orderstatustype_id LIKE 5 which is Shipped.</p>
  
  <p>I need only shipping records but its pulling all the records like the following</p>
  
  <pre><code>Array
  (
      [0] =&gt; Array
          (
              [Joborder] =&gt; Array
                  (
                      [id] =&gt; 1
                      [job_type] =&gt; postcard
                      [payment_status] =&gt; Billed
                      [estimate_id] =&gt; 4
                      [quantity] =&gt; 
                      [date_created] =&gt; 2011-12-12
                  )
  
              [Estimate] =&gt; Array
                  (
                      [id] =&gt; 4
                      [client_id] =&gt; 4
                      [custom_estimate] =&gt; 0
                      [custom_description] =&gt; 
                      [clientuser_id] =&gt; 40
                      [admin_id] =&gt; 3
                      [date_created] =&gt; 2012-01-01
                      [time_created] =&gt; 06:27:26 AM
                      [pricing_details] =&gt; 0
                      [wastesheet] =&gt; 12
                      [job_type] =&gt; postcard
                      [client_percentage] =&gt; 
                      [tax_rate] =&gt; 0.00
                      [Client] =&gt; Array
                          (
                              [company_name] =&gt; erte
                          )
  
                  )
  
              [Workorder] =&gt; Array
                  (
                      [id] =&gt; 1
                      [joborder_id] =&gt; 1
                  )
  
              [Joborderpart] =&gt; Array
                  (
                      [0] =&gt; Array
                          (
                              [id] =&gt; 1
                              [binding] =&gt; None
                              [joborder_id] =&gt; 1
                          )
  
                  )
  
              [Orderstatus] =&gt; Array
                  (
                  )
  
          )
  
      [1] =&gt; Array
          (
              [Joborder] =&gt; Array
                  (
                      [id] =&gt; 2
                      [job_type] =&gt; asdf
                      [payment_status] =&gt; 
                      [estimate_id] =&gt; 5
                      [quantity] =&gt; 
                      [date_created] =&gt; 2011-10-12
                  )
  
              [Estimate] =&gt; Array
                  (
                      [id] =&gt; 5
                      [client_id] =&gt; 4
                      [custom_estimate] =&gt; 0
                      [custom_description] =&gt; 
                      [clientuser_id] =&gt; 40
                      [admin_id] =&gt; 3
                      [date_created] =&gt; 2012-01-02
                      [time_created] =&gt; 06:29:03 AM
                      [pricing_details] =&gt; 0
                      [wastesheet] =&gt; 12
                      [job_type] =&gt; asdf
                      [client_percentage] =&gt; 
                      [tax_rate] =&gt; 0.00
                      [Client] =&gt; Array
                          (
                              [company_name] =&gt; erte
                          )
  
                  )
  
              [Workorder] =&gt; Array
                  (
                      [id] =&gt; 2
                      [joborder_id] =&gt; 2
                  )
  
              [Joborderpart] =&gt; Array
                  (
                      [0] =&gt; Array
                          (
                              [id] =&gt; 2
                              [binding] =&gt; None
                              [joborder_id] =&gt; 2
                          )
  
                      [1] =&gt; Array
                          (
                              [id] =&gt; 3
                              [binding] =&gt; None
                              [joborder_id] =&gt; 2
                          )
  
                  )
  
              [Orderstatus] =&gt; Array
                  (
                      [0] =&gt; Array
                          (
                              [id] =&gt; 13
                              [orderstatustype_id] =&gt; 5
                              [joborder_id] =&gt; 2
                              [Orderstatustype] =&gt; Array
                                  (
                                      [id] =&gt; 5
                                      [orderstatus] =&gt; Shipped
                                  )
  
                          )
  
                  )
  
          )
  
      [2] =&gt; Array
          (
              [Joborder] =&gt; Array
                  (
                      [id] =&gt; 3
                      [job_type] =&gt; postcard
                      [payment_status] =&gt; 
                      [estimate_id] =&gt; 6
                      [quantity] =&gt; 
                      [date_created] =&gt; 2012-01-01
                  )
  
              [Estimate] =&gt; Array
                  (
                      [id] =&gt; 6
                      [client_id] =&gt; 4
                      [custom_estimate] =&gt; 0
                      [custom_description] =&gt; 
                      [clientuser_id] =&gt; 40
                      [admin_id] =&gt; 3
                      [date_created] =&gt; 2012-01-03
                      [time_created] =&gt; 06:30:30 AM
                      [pricing_details] =&gt; 1
                      [wastesheet] =&gt; 12
                      [job_type] =&gt; postcard
                      [client_percentage] =&gt; 
                      [tax_rate] =&gt; 0.00
                      [Client] =&gt; Array
                          (
                              [company_name] =&gt; erte
                          )
  
                  )
  
              [Workorder] =&gt; Array
                  (
                      [id] =&gt; 3
                      [joborder_id] =&gt; 3
                  )
  
              [Joborderpart] =&gt; Array
                  (
                      [0] =&gt; Array
                          (
                              [id] =&gt; 4
                              [binding] =&gt; None
                              [joborder_id] =&gt; 3
                          )
  
                      [1] =&gt; Array
                          (
                              [id] =&gt; 5
                              [binding] =&gt; None
                              [joborder_id] =&gt; 3
                          )
  
                  )
  
              [Orderstatus] =&gt; Array
                  (
                  )
  
          )
  
  )
  </code></pre>
  
  <p>I need to filter only the shipped records.. please help me..</p>