Class Sequel::Plugins::ManyThroughMany::ManyThroughManyAssociationReflection
In: lib/sequel/plugins/many_through_many.rb
Parent: Sequel::Model::Associations::ManyToManyAssociationReflection

The AssociationReflection subclass for many_through_many associations.

Methods

Public Instance methods

The table containing the column to use for the associated key when eagerly loading

[Source]

    # File lib/sequel/plugins/many_through_many.rb, line 37
37:         def associated_key_table
38:           self[:associated_key_table] = self[:final_reverse_edge][:alias]
39:         end

The list of joins to use when eager graphing

[Source]

    # File lib/sequel/plugins/many_through_many.rb, line 42
42:         def edges
43:           self[:edges] || calculate_edges || self[:edges]
44:         end

Many through many associations don‘t have a reciprocal

[Source]

    # File lib/sequel/plugins/many_through_many.rb, line 47
47:         def reciprocal
48:           nil
49:         end

The list of joins to use when lazy loading or eager loading

[Source]

    # File lib/sequel/plugins/many_through_many.rb, line 52
52:         def reverse_edges
53:           self[:reverse_edges] || calculate_edges || self[:reverse_edges]
54:         end

[Validate]