Skip to content

Commit d64bfe2

Browse files
committed
Fix mirror
1 parent a0ddee0 commit d64bfe2

2 files changed

Lines changed: 13 additions & 0 deletions

File tree

src/Database/Database.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1208,6 +1208,7 @@ public function enableLocks(bool $enabled): static
12081208

12091209
return $this;
12101210
}
1211+
12111212
/**
12121213
* Set custom document class for a collection
12131214
*

src/Database/Mirror.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1099,4 +1099,16 @@ protected function logError(string $action, \Throwable $err): void
10991099
$callback($action, $err);
11001100
}
11011101
}
1102+
1103+
/**
1104+
* Set custom document class for a collection
1105+
*
1106+
* @param string $collection Collection ID
1107+
* @param class-string<Document> $className Fully qualified class name that extends Document
1108+
* @return static
1109+
*/
1110+
public function setDocumentType(string $collection, string $className): static
1111+
{
1112+
return $this->delegate(__FUNCTION__, \func_get_args());
1113+
}
11021114
}

0 commit comments

Comments
 (0)