Friday, March 26, 2010

Re: How to search - A very strange find

Your question is not clear, I guess you need this:

$this
->Model1->Behaviors->attach('Containable');
$this->Model1->find('first',  	array( 		'conditions' => array('Model1.id' => $id), 	        'contain' => array('Model2' => array('fields' => array('Model2.title', 'Model2.description', 'Model2.reservation_status'))), 	        'fields' => array('Model1.id','Model1.title','Model1.description')         ) ); 

On 03/26/2010 09:10 PM, amarradi wrote:
I have to go to bed good night  Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.  You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en  To unsubscribe from this group, send email to cake-php+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.   

No comments: