class Marten::DB::ReverseRelation
- Marten::DB::ReverseRelation
- Reference
- Object
Defined in:
marten/db/reverse_relation.crConstructors
Instance Method Summary
-
#field_id : String
Returns the field ID that initiated the reverse relation.
-
#id : String?
Returns the ID of the reverse relation.
-
#many_to_many?
Returns
true
if the reverse relation is associated with a many to many field. -
#many_to_one?
Returns
true
if the reverse relation is associated with a many to one field. -
#model : Marten::DB::Model.class
Returns the model class targetted by the reverse relation.
-
#on_delete : Deletion::Strategy
Returns the "on delete" strategy to consider for the considered reverse relation.
-
#one_to_one?
Returns
true
if the reverse relation is associated with a one to one field. -
#parent_link?
Returns
true
if the reverse relation is a parent link.
Constructor Detail
Instance Method Detail
def on_delete : Deletion::Strategy
#
Returns the "on delete" strategy to consider for the considered reverse relation.