Class | DataMapper::Associations::ManyToMany::Relationship |
In: |
lib/dm-core/associations/many_to_many.rb
|
Parent: | Associations::OneToMany::Relationship |
OPTIONS | = | superclass::OPTIONS.dup << :through << :via |
Returns a set of keys that identify the target model
@return [DataMapper::PropertySet]
a set of properties that identify the target model
@api semipublic
Eager load the collection using the source as a base
@param [Resource, Collection] source
the source to query with
@param [Query, Hash] other_query
optional query to restrict the collection
@return [ManyToMany::Collection]
the loaded collection for the source
@api private
Intermediate association for through model relationships
Example: for :bugs association in
class Software::Engineer
include DataMapper::Resource has n, :missing_tests has n, :bugs, :through => :missing_tests
end
through is :missing_tests
TODO: document a case when through option is a model and not an association name
@api semipublic