Module: Filemaker::Model::Relations::ClassMethods

Defined in:
lib/filemaker/model/relations.rb

Instance Method Summary collapse

Instance Method Details

#belongs_to(name, options = {}) ⇒ Object



19
20
21
# File 'lib/filemaker/model/relations.rb', line 19

def belongs_to(name, options = {})
  relate_single(Relations::BelongsTo, name, options)
end

#has_many(name, options = {}) ⇒ Object



15
16
17
# File 'lib/filemaker/model/relations.rb', line 15

def has_many(name, options = {})
  relate_collection(Relations::HasMany, name, options)
end

#has_portal(name, options = {}) ⇒ Object



23
24
25
# File 'lib/filemaker/model/relations.rb', line 23

def has_portal(name, options = {})
  Relations::HasPortal.new(self, name, options)
end