class

Marten::DB::ReverseRelation

Inherits Reference / Object

Constructors

new(id : String | Nil, model : Model.class, field_id : String)
Source

Instance methods

field_id

Returns the field ID that initiated the reverse relation.

Source
id

Returns the ID of the reverse relation.

Source
many_to_many?

Returns true if the reverse relation is associated with a many to many field.

Source
many_to_one?

Returns true if the reverse relation is associated with a many to one field.

Source
model

Returns the model class targetted by the reverse relation.

Source
on_delete

Returns the "on delete" strategy to consider for the considered reverse relation.

Source
one_to_one?

Returns true if the reverse relation is associated with a one to one field.

Source