fix orm order empty

This commit is contained in:
Yuri Kuznetsov
2022-04-13 13:45:54 +03:00
parent f4930b0a1f
commit 46d8ec757f
@@ -2268,7 +2268,7 @@ abstract class BaseQueryComposer implements QueryComposer
$fieldPath = $this->getAttributePathForOrderBy($entity, $orderBy, $params ?? []);
if (!$fieldPath) {
if ($fieldPath === null || $fieldPath === '') {
throw new LogicException("Could not handle 'order' for '".$entity->getEntityType()."'.");
}