class

Relationship::Collection

Inherits Lustra::Model::CollectionBase < Lustra::SQL::SelectBuilder < Lustra::SQL::Query::WithPagination < Lustra::SQL::Query::BeforeQuery < Lustra::SQL::Query::Change < Lustra::SQL::Query::Connection < Lustra::SQL::Query::Pluck < Lustra::SQL::Query::Fetch < Lustra::SQL::Query::Execute < Lustra::SQL::Query::Lock < Lustra::SQL::Query::Window < Lustra::SQL::Query::CTE < Lustra::SQL::Query::Aggregate < Lustra::SQL::Query::OffsetLimit < Lustra::SQL::Query::GroupBy < Lustra::SQL::Query::OrderBy < Lustra::SQL::Query::Having < Lustra::SQL::Query::Where < Lustra::SQL::Query::Join < Lustra::SQL::Query::From < Lustra::SQL::Query::Select < Enumerable < Reference < Object

:doc: Lustra::Model::Collection

This is the object managing a SELECT request. A new collection is created by calling Lustra::Model.query

Collection are mutable and refining the SQL will mutate the collection. You may want to copy the collection by calling dup

See Lustra::Model::CollectionBase

Instance methods

with_follower(fetch_columns = false, &block : Post::Collection -> ) : self
with_follower(fetch_columns = false) : self
with_leader(fetch_columns = false, &block : Post::Collection -> ) : self
with_leader(fetch_columns = false) : self