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 177b436 commit b859fceCopy full SHA for b859fce
src/Processors/DataProcessor.php
@@ -179,7 +179,17 @@ protected function selectOnlyNeededColumns(array $data)
179
if (is_null($this->onlyColumns)) {
180
return $data;
181
} else {
182
- return array_intersect_key($data, array_flip(array_merge($this->onlyColumns, $this->exceptions)));
+ $dotted_array = array_intersect_key(
183
+ array_dot($data),
184
+ array_flip(array_merge($this->onlyColumns, $this->exceptions))
185
+ );
186
+
187
+ $nested_array = [];
188
+ foreach ($dotted_array as $key => $value) {
189
+ array_set($nested_array, $key, $value);
190
+ }
191
192
+ return $nested_array;
193
}
194
195
0 commit comments