Ok, I partially answer myself.
The thing is here:
xpdoquery.class.php, line 490: buildConditionalClause()
$conjunction= xPDOQuery::SQL_AND
This controls what I’m looking for. setting to .._OR and I get the correct results:
(x AND y) OR (x AND y) OR (x AND y)
Now, how to change this per query, and not in the source...
Browsing through the code, I see it is not currently possible to independently control this param.
foreach ($conditions AS $i => $condition) {
$where= $query->buildConditionalClause($condition,xPDOQuery::SQL_AND);
$query->where($where, xPDOQuery::SQL_OR,null,$i);
}
The above approach
should resolve is, but ->buildConditionalClause doesn’t work (returns this strange: ( u ) AND ( p p )