Skip to content

Class

SiblingsProperty

@propertyWrapper final class SiblingsProperty<From, To, Through> where From : Model, To : Model, Through : Model

Topics

Initializers

Instance Properties

Instance Methods

  • attach(_:method:on:_:)
    Attach a single model by creating a pivot model and specifying the attachment method.
  • attach(_:on:_:)
    Attach a single model by creating a pivot model.
  • detach(_:on:)
    Detach a single model by deleting the pivot.
  • detachAll(on:)
    Detach all models by deleting all pivots from this model.
  • isAttached(to:on:)
    Check whether a specific model is already attached through a sibling relationship.
  • isAttached(toID:on:)
    Check whether a specific model ID is already attached through a sibling relationship.
  • query(on:)
    Returns a QueryBuilder that can be used to query the siblings.

Enumerations

Default Implementations

Relationships

Conforms To