addEagerConstraints method
Set the constraints for an eager load of the relation.
Implementation
@override
void addEagerConstraints(List<KhademModel> models) {
final keys = models
.map((model) => model.getAttribute(localKey))
.where((key) => key != null)
.toSet()
.toList();
query.whereIn(foreignKey, keys);
}