EagerLoader class
A utility class for eager loading database relations in the Khadem ORM.
This class provides functionality to load related models efficiently by parsing relation specifications and executing optimized database queries to fetch related data in batches rather than individual queries.
Supports various relation types including:
- hasOne/hasMany (one-to-one, one-to-many)
- belongsTo (many-to-one)
- belongsToMany (many-to-many with pivot table)
- morphOne/morphMany (polymorphic relations)
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
loadRelations(
List< KhademModel> models, List relations) → Future<void> - Loads relations based on parsed metadata.
-
parseRelations(
List raw) → List< RelationMeta> - Parses a raw list of relation inputs into a list of RelationMeta.