Jump to content

Cakephp find condition automatically generated fields?


alvin567

Recommended Posts

  $claims = $this->Claim->find('all', array(

'fields' => array('Claim.id','Renewal.company_name', 'Claim.ref', 'Claim.reference', 'Claim.size', 'Claim.category', 'Claim.date_notified', 'Claim.incident', 'Renewal.year',

  'Claim.claim_reserve_gross', 'Renewal.excess', 'Claim.claim_reserve_net', 'Claim.counsel_appointed', 'Claim.close_file_remarks', 'Claim.file_status',

  'Claim.total_payment_indemnity','Claim.brief'),

'recursive' => -1,

                        'order' => 'Claim.reference ASC',

'conditions' => $conditions,

'joins' =>

                        array('INNER JOIN renewals AS Renewal ON ( Renewal.id = Claim.renewal_id )

')

));

 

Hi there,is it possible to get all fields from a tuple in cakephp?

 

Ok what i mean is is it possible to get all the values?

 

    $claims = $this->Claim->find('all', array(

'recursive' => -1,

                        'order' => 'Claim.reference ASC',

'conditions' => $conditions,

'joins' =>

                        array('INNER JOIN renewals AS Renewal ON ( Renewal.id = Claim.renewal_id )

')

      ));

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.