ModelRelations<T extends Model<T>> extension

Relation methods for Model

on

Methods

getRelation<R>(String name) → R?

Available on Model<T>, provided by the ModelRelations extension

Type-safe relation accessor
loadMany(List<String> relations) Future<T>

Available on Model<T>, provided by the ModelRelations extension

Load a relation for this single model Load multiple relations
withRelation(String name, {List<String>? columns}) → T

Available on Model<T>, provided by the ModelRelations extension

Add relation to eager load