I am having trouble with pdoResources not retrieving the correct resources when I use &where filtering.
When I add the &where pdoResouces does not limit the query to the selected &parents but instead queries the entire context:
The following works and limits itself to child of resources 617
[[!pdoResources?
&parents=`617`
&limit=`0`
&includeTVs=`report-meeting`
&tvPrefix=``
&tpl=`reports-table-by-creator-tpl`
&showHidden=`1`
]]
However this includes all results EVEN resources that are not child of Resource 617 but does apply the &where limit to only return the two templates.
[[!pdoResources?
&parents=`617`
&limit=`0`
&includeTVs=`report-meeting`
&tvPrefix=``
&tpl=`reports-table-by-creator-tpl`
&showHidden=`0`
&where=`{"template:=":9, "OR:template:=":10}`
]]
getResources works correctly:
[[!getResources?
&parents=`617`
&limit=`0`
&includeTVs=`1`
&tvPrefix=``
&tpl=`reports-table-by-creator-tpl`
&showHidden=`0`
&where=`{"template:=":9, "OR:template:=":10}`
]]
The number of resources will grow greatly and I think pdoResources will be much faster when querying thousands of records.
System: Modx 2.8.4 on modxcloud
Any advice would be very helpful.
Thanks
Roy