HasConversationPartition
trait HasConversationPartition
Methods
Boot the conversation partition global scope.
Populate the conversation partition before an insert that ignores unique conflicts.
Stamp the current partition before either model insertion path runs its listeners.
Get the authoritative attributes for a partitioned insert.
Add the conversation partition to an existing model write query.
Add the conversation partition to an existing model select query.
Create a partitioned query for queued model restoration.
Check a stored relationship owner without resolving a partition for eager-load prototypes.
Reject a model that does not belong to the current conversation partition.
Details
at line 17
static void
bootHasConversationPartition()
Boot the conversation partition global scope.
at line 25
protected bool
performInsert(Builder $query)
Populate the conversation partition before model creation events run.
at line 35
protected bool
performInsertOrIgnore(Builder $query, array|string|null $uniqueBy)
Populate the conversation partition before an insert that ignores unique conflicts.
at line 45
protected void
setConversationPartitionForInsert()
Stamp the current partition before either model insertion path runs its listeners.
at line 61
protected array
getAttributesForInsert()
Get the authoritative attributes for a partitioned insert.
at line 78
protected Builder
setKeysForSaveQuery(Builder $query)
Add the conversation partition to an existing model write query.
at line 102
protected Builder
setKeysForSelectQuery(Builder $query)
Add the conversation partition to an existing model select query.
at line 122
Builder
newQueryForRestoration(array|int|string $ids)
Create a partitioned query for queued model restoration.
at line 135
protected void
ensureConversationRelationshipPartition()
Check a stored relationship owner without resolving a partition for eager-load prototypes.
at line 145
protected void
ensureModelMatchesConversationPartition(ConversationPartition $partition)
Reject a model that does not belong to the current conversation partition.