Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/Database/Query.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,10 @@ class Query
*/
public function __construct(string $method, string $attribute = '', array $values = [])
{
if ($attribute === '' && \in_array($method, [Query::TYPE_ORDER_ASC, Query::TYPE_ORDER_DESC])) {
$attribute = '$internalId';
Comment thread
abnegate marked this conversation as resolved.
Comment thread
abnegate marked this conversation as resolved.
}

$this->method = $method;
$this->attribute = $attribute;
$this->values = $values;
Expand Down
Loading