orm: wrap and/or expr into braces

This commit is contained in:
Yuri Kuznetsov
2023-10-11 10:43:39 +03:00
parent c155d37790
commit 68d6a14d04
2 changed files with 27 additions and 2 deletions
@@ -974,7 +974,7 @@ abstract class BaseQueryComposer implements QueryComposer
}
if (in_array($function, ['OR', 'AND'])) {
return implode(' ' . $function . ' ', $argumentPartList);
return '(' . implode(' ' . $function . ' ', $argumentPartList) . ')';
}
if (!$isBuiltIn && $this->functionConverterFactory) {