I have created a query to pull all published resources that use template 18. The code works:
$c = $modx->newQuery('modResource');
$c->where(
'published'=>1,
'deleted:!='=>1,
'template'=>18
);
$collection = $modx->getCollection('modResource',$c);
Now I need a query which chooses published resources that use template 18 *or* 19. This is what I have but it doesn't work:
$c = $modx->newQuery('modResource');
$c->where(
'published'=>1,
'deleted:!='=>1,
array('template'=>18,'OR:template'=>19)
);
$collection = $modx->getCollection('modResource',$c);
I've tried a few different combinations but I can't figure out the proper syntax.