fix orderById

This commit is contained in:
Yuri Kuznetsov
2020-03-04 14:16:21 +02:00
parent 4aba2aab4c
commit 60ae87a3cb
@@ -203,6 +203,8 @@ class Base
}
if (
$sortBy != 'id'
&&
$this->getMetadata()->get(['entityDefs', $this->getEntityType(), 'fields', $sortBy, 'orderById'])
&&
$this->getSeed()->hasAttribute('id')