Class: DataMapper::Associations::ManyToMany::Collection

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

### Methods

destroy destroy! intermediaries

### Public Instance methods

destroy()

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

destroy!()

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

intermediaries()

Return the intermediaries between the source and the targets

@return [Collection]

      the intermediary collection

@api public

[Validate]