class Backend::Db::Class::Collection
- Backend::Db::Class::Collection
- Clear::Model::CollectionBase(Backend::Db::Class)
- Reference
- Object
Overview
Addition of the method for eager loading and N+1 avoidance.
Defined in:
backend/db/class.crInstance Method Summary
-
#with_students(fetch_columns = false, &block : Student::Collection -> ) : self
Eager load the has many relation students.
- #with_students(fetch_columns = false)
Instance Method Detail
Eager load the has many relation students. Use it to avoid N+1 queries.