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 0153414 commit 49f248cCopy full SHA for 49f248c
src/Kir/MySQL/Builder/RunnableSelect.php
@@ -109,6 +109,24 @@ public function fetchKeyValue() {
109
return $result;
110
}
111
112
+ /**
113
+ * @param array $fields
114
+ * @return array
115
+ */
116
+ public function fetchGroups(array $fields) {
117
+ $rows = $this->fetchRows();
118
+ $result = array();
119
+ foreach($rows as $row) {
120
+ $tmp = &$result;
121
+ foreach($fields as $field) {
122
+ $tmp[$field] = [];
123
+ $tmp = &$tmp[$field];
124
+ }
125
+ $tmp = $row;
126
127
+ return $result;
128
129
+
130
/**
131
* @return string[]
132
*/
0 commit comments