Skip to content

Commit

Permalink
Exposes except option for multisite replication
Browse files Browse the repository at this point in the history
  • Loading branch information
daftspunk committed Apr 2, 2024
1 parent 0f77e23 commit fed6f02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Database/Traits/Multisite.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit fed6f02

Please sign in to comment.