Skip to content

Commit d8c9b53

Browse files
committed
Fix merge
1 parent aef4c2b commit d8c9b53

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Database/Database.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4284,7 +4284,7 @@ public function createDocument(string $collection, Document $document): Document
42844284
// Use the write stack depth for proper MAX_DEPTH enforcement during creation
42854285
$fetchDepth = count($this->relationshipWriteStack);
42864286
$documents = $this->silent(fn () => $this->populateDocumentsRelationships([$document], $collection, $fetchDepth));
4287-
$document = $this->adapter->castingAfter($documents[0]);
4287+
$document = $this->adapter->castingAfter($collection, $documents[0]);
42884288
}
42894289

42904290
$document = $this->casting($collection, $document);

0 commit comments

Comments
 (0)