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 85c11ae commit b9ee1a7Copy full SHA for b9ee1a7
1 file changed
src/Database/Document.php
@@ -39,12 +39,10 @@ public function __construct(array $input = [])
39
if (!\is_array($value)) {
40
continue;
41
}
42
-
43
if (isset($value['$id']) || isset($value['$collection'])) {
44
$input[$key] = new self($value);
45
46
47
48
foreach ($value as $childKey => $child) {
49
if ((isset($child['$id']) || isset($child['$collection'])) && (!$child instanceof self)) {
50
$value[$childKey] = new self($child);
0 commit comments