From fed6f027179643e128dc5ddf3ad89b9934b0f07c Mon Sep 17 00:00:00 2001 From: Samuel Georges Date: Tue, 2 Apr 2024 11:21:36 +1100 Subject: [PATCH] Exposes `except` option for multisite replication --- src/Database/Traits/Multisite.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Database/Traits/Multisite.php b/src/Database/Traits/Multisite.php index 5d98ce907..4a2b3bc24 100644 --- a/src/Database/Traits/Multisite.php +++ b/src/Database/Traits/Multisite.php @@ -416,7 +416,7 @@ protected function findOtherSiteModel($siteId = null) // Replicate without save if (!$otherModel) { - $otherModel = $this->replicateWithRelations(); + $otherModel = $this->replicateWithRelations($this->getMultisiteConfig('except')); $otherModel->{$this->getSiteIdColumn()} = $siteId; $otherModel->site_root_id = $this->site_root_id ?: $this->id; }