You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/QueryFactory/AbstractQueryFactory.php
+15-6Lines changed: 15 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -51,15 +51,14 @@ public function __construct(TDBMService $tdbmService, Schema $schema, OrderByAna
51
51
*
52
52
* Note: MySQL dictates that ORDER BYed columns should appear in the SELECT clause.
53
53
*
54
-
* @param string $mainTable
55
-
* @param array $additionalTablesFetch
54
+
* @param string $mainTable
55
+
* @param array $additionalTablesFetch
56
56
* @param string|UncheckedOrderBy|null $orderBy
57
57
*
58
+
* @param bool $canAddAdditionalTablesFetch Set to true if the function can add additional tables to fetch (so if the factory generates its own FROM clause)
$columnsList[] = $mysqlPlatform->quoteIdentifier($orderByColumn['table']).'.'.$mysqlPlatform->quoteIdentifier($orderByColumn['column']).' as '.$sortColumnName;
110
+
$columnDescList[$sortColumnName] = [
111
+
'tableGroup' => null,
112
+
];
113
+
++$sortColumn;
114
+
}
106
115
}
107
116
if ($securedOrderBy) {
108
117
// Let's protect via MySQL since we go through MagicJoin
0 commit comments