alvin567 Posted June 5, 2012 Share Posted June 5, 2012 $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? Link to comment https://forums.phpfreaks.com/topic/263677-cakephp-find-condition-automatically-generated-fields/ Share on other sites More sharing options...
alvin567 Posted June 5, 2012 Author Share Posted June 5, 2012 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 ) ') )); Link to comment https://forums.phpfreaks.com/topic/263677-cakephp-find-condition-automatically-generated-fields/#findComment-1351287 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.