class

Marten::DB::Query::ManyToManySet(M)

Inherits Marten::DB::Query::Set < Marten::Template::Object < Marten::Template::CanDefineTemplateAttributes < Marten::DB::Query::Set::Any < Enumerable < Reference < Object

Represents a query set resulting from a many-to-many relation.

Constructors

Instance methods

add(objs : Enumerable(M) | Iterable(M))

Adds the given objects to the many-to-many relationship.

If the objects specified in objs are already in the relationship, they will be skipped and not added again.

Source
add(*objs : M)

Adds the given objects to the many-to-many relationship.

If the objects specified in objs are already in the relationship, they will be skipped and not added again.

Source
clear

Clears the many-to-many relationship.

Source
remove(objs : Enumerable(M) | Iterable(M)) : Nil

Removes the given objects from the many-to-many relationship.

Source
remove(*objs : M) : Nil

Removes the given objects from the many-to-many relationship.

Source