The documentation for pdoFetch is very spare. Here's what is shown there:
$resources = $pdo->getCollection('modResource', array(
'published' => true,
'deleted' => false
), array(
'parents' => '1,5,6,-9',
'includeTVs' => 'tv1, tv2',
'sortby' => 'id',
'sortby' => 'asc',
'limit' => 20,
));
What I can't figure out is, why are there two arrays? And what exactly goes in the first array, versus the second array? I discovered that if I want to search for an ID number, I have to put that in the first array, despite the fact that parent IDs go in the second. What's the logic here? Which site_content fields go in which array? Also, how do I search for content, equivalent to "content LIKE '%something here%'"? I've tried various ways of putting that in, and none of them work.
[ed. note: rainbowtiger last edited this post 10 years, 1 month ago.]