Cake does not perform JOINs on hasMany, but it does for belongsTo. So if you change your query from
$conditions = array( 'Section.id'=>$section_id); $results = $this->Section->findAll( $conditions ); // multiple queries $results = $this->FormField->findAll( $conditions ); // single query then it will execute in a single query, as long as you have the association FormField belongsTo Section. You can have conditions that go across the join like that. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
