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.
2 parents 2548d00 + c645407 commit a6e70b7Copy full SHA for a6e70b7
src/Query.php
@@ -66,6 +66,21 @@ public function run($query = null)
66
$time = $this->connection->getElapsedTime($start);
67
$this->connection->logQuery($query, [], $time);
68
69
- return $result;
+ return $this->nativeArray($result);
70
+ }
71
+
72
+ private function nativeArray($val)
73
+ {
74
+ if (is_array($val)) {
75
+ foreach ($val as $k => $v) {
76
+ $val[$k] = $this->nativeArray($v);
77
78
79
+ return $val;
80
+ } elseif (is_object($val) && $val instanceof \ArrayObject) {
81
+ return $val->getArrayCopy();
82
+ } else {
83
84
85
}
86
0 commit comments