I am building a search form and I want the user to be able to select a
checkbox to only show results that has photos. My model uses a hasMany
= ("Photo"); How do I write my conditions array? I've tried the
following but get an "Invalid use of group function".
$conditions [] = "COUNT(Photo) > 0";
$this->paginate("MyModel",$conditions);
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---