I have a query as below in controller with multiple joins

```
$deals = $this->Deals->find('all', array(
    'fields' => array(
        'Deals.id',
        'Deals.deed_amount',
        'Deals.other_amount',
        'Deals.cash_amount',
        'Deals.total_amount',
        'Deals.client_id',
        'Deals.project_id',
        'Deals.property_id',
        'Deals.properties_flat_id',
        'Deals.date',
        'Deals.status',
        'Deals.invoice_no',
        'Deals.remain_cash_amount',
        'Deals.remain_deed_amount',
        'Deals.remain_other_amount',
        'Deals.remain_deed_amount',
        'Property.name',
        'Client.name',
        'PropertyFlat.name',
        'PropertyFlat.status'

    ),
    'joins' => array(
        array(
            'table' => 'properties',
            'alias' => 'Property',
            'type'  => 'LEFT',
            'conditions' => array(
                'Deals.property_id = Property.id'
            )
        ),
        array(
            'table' => 'clients',
            'alias' => 'Client',
            'type'  => 'LEFT',
            'conditions' => array(
                'Deals.client_id = Client.id'
            )
        ),
        array(
            'table' => 'properties_flats',
            'alias' => 'PropertyFlat',
            'type'  => 'LEFT',
            'conditions' => array(
                'Deals.properties_flat_id = PropertyFlat.id'
            )
        )

    ),

   // 'conditions'=>$condition

));

```

I want to add pagination to the view. I tried following

```
$this->set('deals', $this->Paginator->paginate($deals));

```

But no use. Please help me in how to add pagination for the custom query. I searched many links but did not get any help.