Skip to content

Commit f7b17d8

Browse files
committed
Fix mirror
1 parent 99f5683 commit f7b17d8

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

src/Database/Mirror.php

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1114,4 +1114,31 @@ public function setDocumentType(string $collection, string $className): static
11141114
return $this;
11151115
}
11161116

1117+
/**
1118+
* Clear document type mapping for a collection
1119+
*
1120+
* @param string $collection Collection ID
1121+
* @return static
1122+
*/
1123+
public function clearDocumentType(string $collection): static
1124+
{
1125+
$this->delegate(__FUNCTION__, \func_get_args());
1126+
unset($this->documentTypes[$collection]);
1127+
1128+
return $this;
1129+
}
1130+
1131+
/**
1132+
* Clear all document type mappings
1133+
*
1134+
* @return static
1135+
*/
1136+
public function clearAllDocumentTypes(): static
1137+
{
1138+
$this->delegate(__FUNCTION__);
1139+
$this->documentTypes = [];
1140+
1141+
return $this;
1142+
}
1143+
11171144
}

0 commit comments

Comments
 (0)