Class | DataMapper::Associations::OneToMany::Relationship |
In: |
lib/dm-core/associations/one_to_many.rb
|
Parent: | Associations::Relationship |
child_repository_name | -> | target_repository_name |
TODO: document @api semipublic | ||
child_model | -> | target_model |
TODO: document @api semipublic | ||
parent_repository_name | -> | source_repository_name |
TODO: document @api semipublic | ||
parent_model | -> | source_model |
TODO: document @api semipublic | ||
parent_key | -> | source_key |
TODO: document @api semipublic |
Returns a Collection for this relationship with a given source
@param [Resource] source
A Resource to scope the collection with
@param [Query] other_query (optional)
A Query to further scope the collection with
@return [Collection]
The collection scoped to the relationship, source and query
@api private
Loads and returns association targets (ex.: articles) for given source resource (ex.: author)
@api semipublic