I have a model called Section, just an id and a section name, similar
to category

Each section has many FormFields, so the FormField model has a
section_id

Is there a way to $section->findAll() with a join, rather than cake
iterating through all the returned sections and doing a select on the
form_fields table for every one.  In other words, tell cake to

select Section.id,Section.section,FormField.* from sections as
section, form_fields as Formfield where 1=1 and Section.id =
FormField.section_id

Is the only way to do this by adding the finderQuery in the model
definition?

Thanks,
Brian


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to