def primary : String | Nil
#
class Jennifer::Model::Relation(T, Q)
- Jennifer::Model::Relation(T, Q)
- Jennifer::Model::IRelation
- Reference
- Object
Defined in:
jennifer/model/relation.crConstructors
Instance Method Summary
- #condition_clause(id)
- #condition_clause
- #foreign : String | Nil
- #join_query : QueryBuilder::Query(T)
- #model_class
- #primary : String | Nil
- #table_name
- #type : Symbol
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))
#