Class DataMapper::Associations::ManyToMany::Collection
In: lib/dm-core/associations/many_to_many.rb
Parent: Associations::OneToMany::Collection

Methods

Public Instance methods

Remove every Resource in the m:m Collection from the repository

This performs a deletion of each Resource in the Collection from the repository and clears the Collection.

@return [Boolean]

  true if the resources were successfully destroyed

@api public

Remove every Resource in the m:m Collection from the repository, bypassing validation

This performs a deletion of each Resource in the Collection from the repository and clears the Collection while skipping validation.

@return [Boolean]

  true if the resources were successfully destroyed

@api public

Return the intermediaries linking the source to the targets

@return [Collection]

  the intermediary collection

@api public

Protected Instance methods

Map the resources in the collection to the intermediaries

@return [Hash]

  the map of resources to their intermediaries

@api private

@api private

@api private

[Validate]