I am building a search form that retrieves data from four related
models. The user can supply criteria against a number of fields from
those models. What is the best method for doing a variable cross model
search?

To put that into context; If you have an Author model that hasMany
Posts that hasMany Comments, what is the find syntax to retrieve a
list of all Authors filtered by a set of conditions on Authors and/or
a set of conditions on Posts and/or a set of conditions on Comments?
My experiments so far give various results. If I supply criteria for
Posts but none for Authors, I get all Authors but the Posts are
filtered.

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+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to