class Booking::Collection
- Booking::Collection
- Clear::Model::CollectionBase(Booking)
- Reference
- Object
Overview
Addition of the method for eager loading and N+1 avoidance.
Defined in:
models/booking.cr:2models/booking.cr:74
models/booking.cr:78
models/booking.cr:82
models/booking.cr:86
models/booking.cr:107
models/booking.cr:120
models/booking.cr:124
models/booking.cr:128
models/booking.cr:132
models/booking.cr:138
models/booking.cr:147
models/booking.cr:156
models/booking.cr:170
Instance Method Summary
- #booked_between(tenant_id, period_start, period_end)
- #by_tenant(tenant_id)
- #by_user_email(user_email)
- #by_user_id(user_id)
- #by_user_or_email(user_id_value, user_email_value, include_booked_by)
- #by_zones(zones)
- #is_approved(value)
- #is_checked_in(value)
- #is_created_after(time)
- #is_created_before(time)
- #is_extension_data(value)
- #is_rejected(value)
- #is_state(state)
-
#with_attendees(fetch_columns = false, &block : Attendee::Collection -> ) : self
Eager load the has many relation attendees.
- #with_attendees(fetch_columns = false)
- #with_tenant(fetch_columns = false, &block : Tenant::Collection -> ) : self
- #with_tenant(fetch_columns = false) : self
Instance Method Detail
Eager load the has many relation attendees. Use it to avoid N+1 queries.