trait Reactable (View source)

Methods to manage reactions on a model.

Methods

MorphMany
reactions()

Relationship with the reactions for this model.

reactionsSummary()

Relationship with a summary of the reactions for this model.

ReactionSet|null
reactionSet()

Get the reaction set that applies to this model.

recalculateScore()

Recalculate the score from the reactions.

Details

MorphMany reactions()

Relationship with the reactions for this model.

Return Value

MorphMany

ReactionsSummaryRelation reactionsSummary()

Relationship with a summary of the reactions for this model.

This is less expensive to load than all of the actual reactions.

abstract ReactionSet|null reactionSet()

Get the reaction set that applies to this model.

Return Value

ReactionSet|null

Reactable recalculateScore()

Recalculate the score from the reactions.

Return Value

Reactable