diff --git a/src/Database/Database.php b/src/Database/Database.php index f51e806ed..bc25e3d68 100644 --- a/src/Database/Database.php +++ b/src/Database/Database.php @@ -1643,9 +1643,9 @@ public function encode(Document $collection, Document $document): Document $value = $document->getAttribute($key, null); // continue on optional param with no default - if (is_null($value) && is_null($default)) { - continue; - } + // if (is_null($value) && is_null($default)) { // comment now to run migrations + // continue; + // } // assign default only if no no value provided if (is_null($value) && !is_null($default)) { @@ -1655,11 +1655,11 @@ public function encode(Document $collection, Document $document): Document } foreach ($value as &$node) { - if (($node !== null)) { - foreach ($filters as $filter) { - $node = $this->encodeAttribute($filter, $node, $document); - } + // if (($node !== null)) { + foreach ($filters as $filter) { + $node = $this->encodeAttribute($filter, $node, $document); } + // } } if (!$array) {