Are you wanting an INNER JOIN so it will only find records where Poll
has Section and has Question.

If this is the case then I would define counterCache true on your
Section and Question belongsTo associations and add a section_count
and question_count field to you polls and sectios tables respectively.

This way when running a find on Poll you can add the conditions of
Poll.section_count > 0 and Section.question_count > 0.  However to do
this you would also have to use bindModel to change your Poll hasMany
Section to Poll hasOne Section.

HTH

Paul.

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 [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

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.

Reply via email to