We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b9de83c commit 4cbe055Copy full SHA for 4cbe055
src/Database/Validator/Query/Order.php
@@ -57,9 +57,6 @@ public function isValid($value): bool
57
$attribute = $value->getAttribute();
58
59
if ($method === Query::TYPE_ORDER_ASC || $method === Query::TYPE_ORDER_DESC) {
60
- if ($attribute === '') {
61
- return true;
62
- }
63
return $this->isValidAttribute($attribute);
64
}
65
tests/unit/Validator/Query/OrderTest.php
@@ -27,6 +27,12 @@ public function setUp(): void
27
'type' => Database::VAR_STRING,
28
'array' => false,
29
]),
30
+ new Document([
31
+ '$id' => '$internalId',
32
+ 'key' => '$internalId',
33
+ 'type' => Database::VAR_STRING,
34
+ 'array' => false,
35
+ ]),
36
],
37
);
38
0 commit comments