class Tenant::Collection

Overview

Addition of the method for eager loading and N+1 avoidance.

Defined in:

models/tenant.cr

Instance Method Summary

Instance Method Detail

def with_attendees(fetch_columns = false, &block : Attendee::Collection -> ) : self #

Eager load the has many relation attendees. Use it to avoid N+1 queries.


def with_attendees(fetch_columns = false) #

def with_event_metadata(fetch_columns = false, &block : EventMetadata::Collection -> ) : self #

Eager load the has many relation event_metadata. Use it to avoid N+1 queries.


def with_event_metadata(fetch_columns = false) #

def with_guests(fetch_columns = false, &block : Guest::Collection -> ) : self #

Eager load the has many relation guests. Use it to avoid N+1 queries.


def with_guests(fetch_columns = false) #