orm order expression fix

This commit is contained in:
Yuri Kuznetsov
2021-07-24 11:01:55 +03:00
parent 0c6f8bb52d
commit 622cf46858
2 changed files with 22 additions and 1 deletions
@@ -2048,7 +2048,7 @@ abstract class BaseQueryComposer implements QueryComposer
protected function getAttributePathForOrderBy(Entity $entity, string $orderBy, array $params): ?string
{
if (strpos($orderBy, '.') !== false || strpos($orderBy, ':') !== false) {
if (Util::isComplexExpression($orderBy)) {
return $this->convertComplexExpression(
$entity,
$orderBy,