class Jennifer::Model::Relation(T, Q)

Defined in:

jennifer/model/relation.cr

Constructors

Instance Method Summary

Instance methods inherited from class Jennifer::Model::IRelation

condition_clause(a : DB::Any)
condition_clause
condition_clause
, join_query join_query, model_class model_class, table_name table_name, type type

Instance methods inherited from module Jennifer::Support

pluralize(str : String) pluralize, singularize(str : String) singularize

Constructor Detail

def self.new(name : String, type : Symbol, foreign : String | Symbol | Nil, primary : String | Symbol | Nil, join_query : Jennifer::QueryBuilder::Query(T)) #

[View source]

Instance Method Detail

def condition_clause(id) #

[View source]
def condition_clause #

[View source]
def foreign : String | Nil #

[View source]
def join_query : QueryBuilder::Query(T) #

[View source]
def model_class #

[View source]
def primary : String | Nil #

[View source]
def table_name #

[View source]
def type : Symbol #

[View source]