# File lib/big_record/br_reflection.rb, line 14 def create_reflection_big_record(macro, name, options, big_record) case macro when :has_many_big_records, :belongs_to_big_record, :belongs_to_many, :has_one_big_record, :has_and_belongs_to_many_big_records reflection = BrAssociationReflection.new(macro, name, options, big_record) when :composed_of_big_record reflection = BrAggregateReflection.new(macro, name, options, big_record) end write_inheritable_hash :reflections, name => reflection reflection end