We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ac6391 commit bfd0de8Copy full SHA for bfd0de8
1 file changed
src/Database/Table/SqlBuilder.php
@@ -120,6 +120,11 @@ public function buildInsertQuery(): string
120
public function buildUpdateQuery(): string
121
{
122
$query = "UPDATE {$this->delimitedTable} SET ?set" . $this->tryDelimite($this->buildConditions());
123
+
124
+ if ($this->order !== []) {
125
+ $query .= ' ORDER BY ' . implode(', ', $this->order);
126
+ }
127
128
if ($this->limit !== null || $this->offset) {
129
$this->driver->applyLimit($query, $this->limit, $this->offset);
130
}
0 commit comments