Skip to content

Commit

Permalink
Adds note about idOrModel
Browse files Browse the repository at this point in the history
  • Loading branch information
daftspunk committed Oct 29, 2024
1 parent da693bc commit 86f891b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Database/Traits/Multisite.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ trait Multisite
* Set to an array of options for more granular controls:
*
* - **sync** - logic to sync specific sites, available options: `all`, `group`, `locale`
* - **structure** - enable the sync of tree/sortable structures, default: `false`
* - **structure** - enable the sync of tree/sortable structures, default: `true`
* - **delete** - delete all linked records when any record is deleted, default: `true`
*
* protected $propagatableSync = false;
Expand Down Expand Up @@ -356,6 +356,9 @@ public function getMultisiteSyncSites()
* For example, finding a model using attributes from another site, or finding
* all connected models for all sites.
*
* If the value is provided as a string, it must be the ID from the primary record,
* in other words: taken from `site_root_id` not from the `id` column.
*
* @param \Illuminate\Database\Eloquent\Builder $query
* @param string|\Illuminate\Database\Eloquent\Model $idOrModel
* @return \Illuminate\Database\Eloquent\Builder
Expand Down

0 comments on commit 86f891b

Please sign in to comment.